From 7a4eec5dbbec01c889fc41ca47c12cd127937316 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 5 Oct 2011 12:08:04 +0200 Subject: Fix typo in qfontengine_win Task-number: QTBUG-20482 Change-Id: I3fd072af019a0e531d60a1751a6a32ea5962aac1 Reviewed-on: http://codereview.qt-project.org/6049 Sanity-Review: Qt Sanity Bot Reviewed-by: Kent Hansen --- src/widgets/platforms/win/qfontengine_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/platforms/win') diff --git a/src/widgets/platforms/win/qfontengine_win.cpp b/src/widgets/platforms/win/qfontengine_win.cpp index fc11387367..9d3afb57d9 100644 --- a/src/widgets/platforms/win/qfontengine_win.cpp +++ b/src/widgets/platforms/win/qfontengine_win.cpp @@ -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; -- cgit v1.2.3