QML Text: make sure that the bounding rect has a y position of 0.
authorYann Bodson <yann.bodson@nokia.com>
Sun, 12 Feb 2012 23:52:11 +0000 (09:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 13 Feb 2012 01:58:23 +0000 (02:58 +0100)
This line was lost in a previous merge.

Change-Id: If3683fa17630452abab115638c1c0ebf0824e2a1
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/quick/items/qquicktext.cpp

index 52365a8..f96c9b1 100644 (file)
@@ -773,6 +773,7 @@ QRect QQuickTextPrivate::setupTextLayout()
         }
 
         layout.endLayout();
+        br.moveTop(0);
 
         if (once) {
             naturalWidth = layout.maximumWidth();