summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-09-09 08:52:40 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-09-09 10:57:46 (GMT)
commit1f803aeb390720336a23941f3d1ec71ef0e29083 (patch)
tree9c2267046aec7cccb7faf5e5a55d545fad923b3d /src/gui/text
parent7ab0bed3a56d46c386e65abc381264c57137cb43 (diff)
downloadQt-1f803aeb390720336a23941f3d1ec71ef0e29083.zip
Qt-1f803aeb390720336a23941f3d1ec71ef0e29083.tar.gz
Qt-1f803aeb390720336a23941f3d1ec71ef0e29083.tar.bz2
Reset trailingSpaces in relayout
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextlayout.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp
index cf361a0..4595ef5 100644
--- a/src/gui/text/qtextlayout.cpp
+++ b/src/gui/text/qtextlayout.cpp
@@ -1708,6 +1708,7 @@ void QTextLine::layout_helper(int maxGlyphs)
{
QScriptLine &line = eng->lines[i];
line.length = 0;
+ line.trailingSpaces = 0;
line.textWidth = 0;
line.hasTrailingSpaces = false;