diff options
Diffstat (limited to 'x11-libs/qt-gui/files/qt-gui-4.8.1-fix-calligra-crash.patch')
-rw-r--r-- | x11-libs/qt-gui/files/qt-gui-4.8.1-fix-calligra-crash.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/x11-libs/qt-gui/files/qt-gui-4.8.1-fix-calligra-crash.patch b/x11-libs/qt-gui/files/qt-gui-4.8.1-fix-calligra-crash.patch deleted file mode 100644 index 431141f..0000000 --- a/x11-libs/qt-gui/files/qt-gui-4.8.1-fix-calligra-crash.patch +++ /dev/null @@ -1,28 +0,0 @@ -commit cac12f4592477d99ef6fffaad40345bf85ef53b5 -Author: Jiang Jiang <jiang.jiang@nokia.com> -Date: Mon Apr 2 12:32:05 2012 +0200 - - Fix a crash in cursorToX() when new block is added - - When an empty new block is being added, the layoutData->memory data - will be 0, thus QTextEngine::attributes() will return 0. We should - only access the attributes pointer when some text actually exist. - - Task-number: QTBUG-24718 - Change-Id: I9ce9f7b57bccf24099a02832ce30fb6cebfaad33 - -diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp -index ee658d9..16f7150 100644 ---- a/src/gui/text/qtextlayout.cpp -+++ b/src/gui/text/qtextlayout.cpp -@@ -2508,6 +2508,10 @@ qreal QTextLine::cursorToX(int *cursorPos, Edge edge) const - int pos = *cursorPos; - int itm; - const HB_CharAttributes *attributes = eng->attributes(); -+ if (!attributes) { -+ *cursorPos = 0; -+ return x.toReal(); -+ } - while (pos < line.from + line.length && !attributes[pos].charStop) - pos++; - if (pos == line.from + (int)line.length) {
\ No newline at end of file |