Fix typo in qfontengine_win
authorKent Hansen <kent.hansen@nokia.com>
Wed, 5 Oct 2011 10:08:04 +0000 (12:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Oct 2011 14:00:17 +0000 (16:00 +0200)
Task-number: QTBUG-20482

Change-Id: I3fd072af019a0e531d60a1751a6a32ea5962aac1
Reviewed-on: http://codereview.qt-project.org/6049
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/widgets/platforms/win/qfontengine_win.cpp

index fc11387..9d3afb5 100644 (file)
@@ -1097,7 +1097,7 @@ QNativeImage *QFontEngineWin::drawGDIGlyph(HFONT font, glyph_t glyph, int margin
     int iw = gm.width.toInt();
     int ih = gm.height.toInt();
 
-    if (iw <= 0 || iw <= 0)
+    if (iw <= 0 || ih <= 0)
         return 0;
 
     bool has_transformation = t.type() > QTransform::TxTranslate;