diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-09-15 04:04:32 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-09-15 04:12:16 +1000 |
commit | 1f9700ed2ec8463a6b7d80a06f83c7b50c973b54 (patch) | |
tree | 4a5042f5e2915e29ee83096ce0306f8e0e8208ee /kde-frameworks/ktexteditor/files | |
parent | dev-python/simplecv: remove unused patch (diff) | |
download | gentoo-1f9700ed2ec8463a6b7d80a06f83c7b50c973b54.tar.gz gentoo-1f9700ed2ec8463a6b7d80a06f83c7b50c973b54.tar.bz2 gentoo-1f9700ed2ec8463a6b7d80a06f83c7b50c973b54.zip |
kde-frameworks: version bump 5.26.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'kde-frameworks/ktexteditor/files')
-rw-r--r-- | kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-runtime-crash.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-runtime-crash.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-runtime-crash.patch new file mode 100644 index 000000000000..36636d490632 --- /dev/null +++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.26.0-runtime-crash.patch @@ -0,0 +1,39 @@ +From: Dominik Haumann <dhaumann@kde.org> +Date: Thu, 08 Sep 2016 13:32:39 +0000 +Subject: Fix crash: Make sure the display cursor is valid after text folding +X-Git-Url: http://quickgit.kde.org/?p=ktexteditor.git&a=commitdiff&h=09a1e864d54735ebcab6bf31198fdef969b92a67 +--- +Fix crash: Make sure the display cursor is valid after text folding + +This bug existed at least since KDE 4.3 (2009), took a long time to track it down. + +FIXED-IN: KDE Frameworks 5.27 +BUG: 367466 +Differential-Revision: https://phabricator.kde.org/D2709 +--- + + +--- a/src/view/kateviewinternal.cpp ++++ b/src/view/kateviewinternal.cpp +@@ -709,6 +709,10 @@ + + // set cursor to start of folding region + updateCursor(foldingRange.start(), true); ++ } else { ++ // force an update of the cursor, since otherwise the m_displayCursor ++ // line may be below the total amount of visible lines. ++ updateCursor(m_cursor, true); + } + + updateView(); +@@ -1515,6 +1519,9 @@ + m_view->completionWidget()->cursorUp(); + return; + } ++ ++ // assert that the display cursor is in visible lines ++ Q_ASSERT(m_displayCursor.line() < m_view->textFolding().visibleLines()); + + /** + * move cursor to start of line, if we are at first line! + |