]>
Commit | Line | Data |
---|---|---|
18733c60 SS |
1 | diff -up qt-everywhere-opensource-src-4.8.1/src/gui/text/qtextlayout.cpp.QTBUG-24718 qt-everywhere-opensource-src-4.8.1/src/gui/text/qtextlayout.cpp |
2 | --- qt-everywhere-opensource-src-4.8.1/src/gui/text/qtextlayout.cpp.QTBUG-24718 2012-03-14 15:01:14.000000000 +0100 | |
3 | +++ qt-everywhere-opensource-src-4.8.1/src/gui/text/qtextlayout.cpp 2012-04-03 10:53:12.973058622 +0200 | |
4 | @@ -2508,6 +2508,10 @@ qreal QTextLine::cursorToX(int *cursorPo | |
5 | int pos = *cursorPos; | |
6 | int itm; | |
7 | const HB_CharAttributes *attributes = eng->attributes(); | |
8 | + if (!attributes) { | |
9 | + *cursorPos = 0; | |
10 | + return x.toReal(); | |
11 | + } | |
12 | while (pos < line.from + line.length && !attributes[pos].charStop) | |
13 | pos++; | |
14 | if (pos == line.from + (int)line.length) { |