Remove workaround for QTBUG-22919.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 3 Apr 2012 23:59:25 +0000 (09:59 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 02:46:19 +0000 (04:46 +0200)
Fixed in qtbase.

Change-Id: I2faff485d3aaf5639b211bd0a1b30bf9d37d2e69
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextnode.cpp

index 89c0aec..a3199fb 100644 (file)
@@ -254,9 +254,6 @@ namespace {
             decorations |= (backgroundColor.isValid() ? QQuickTextNode::Background : QQuickTextNode::NoDecoration);
 
             qreal ascent = glyphRun.rawFont().ascent();
-            // ### QTBUG-22919 The bounding rect returned by QGlyphRun appears to start on the
-            // baseline, move it by the ascent so all bounding rects are at baseline - ascent.
-            searchRect.translate(0, -ascent);
             insert(binaryTree, BinaryTreeNode(glyphRun, selectionState, searchRect, decorations,
                                               textColor, backgroundColor, position, ascent));
         }