Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.5.3
-
None
-
2f9c37c4b48c4b5005c89f1c5a5fa036e1e22811
Description
On the Cocoa port, layouting a text containing the BOM result in an infinite loop.
Here is the test case:
diff --git a/tests/auto/qtextlayout/tst_qtextlayout.cpp b/tests/auto/qtextlayout/tst_qtextlayout.cpp
index 5ccae94..8bdccd4 100644
— a/tests/auto/qtextlayout/tst_qtextlayout.cpp
+++ b/tests/auto/qtextlayout/tst_qtextlayout.cpp
@@ -118,7 +118,7 @@ private slots:
void smallTextLengthWordWrap();
void smallTextLengthWrapAtWordBoundaryOrAnywhere();
void testLineBreakingAllSpaces();
-
+ void lineWidthFromBOM();
private:
QFont testFont;
@@ -1033,6 +1033,16 @@ void tst_QTextLayout::testLineBreakingAllSpaces()
QCOMPARE(line2.naturalTextWidth(), 3. * TESTFONT_SIZE);
}
+void tst_QTextLayout::lineWidthFromBOM()
+
+
void tst_QTextLayout::tabsForRtl()
{
QString word(QChar(0x5e9)); // a hebrew character