diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-06-03 09:56:27 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-06-03 09:56:27 (GMT) |
commit | d2d6f3963d11e969bf0fe0ff35064be5455f80c5 (patch) | |
tree | 03b747ac565ef08e094be32bfc27a458b87785fe /src/gui/painting | |
parent | 243535036078fec14bc460ccf41708ff14878797 (diff) | |
download | Qt-d2d6f3963d11e969bf0fe0ff35064be5455f80c5.zip Qt-d2d6f3963d11e969bf0fe0ff35064be5455f80c5.tar.gz Qt-d2d6f3963d11e969bf0fe0ff35064be5455f80c5.tar.bz2 |
Fix Windows build
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpaintengine_raster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index a1d728c..7161fe3 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -3416,8 +3416,8 @@ bool QRasterPaintEngine::supportsTransformations(const QFontEngine *fontEngine) { const QTransform &m = state()->matrix; #if defined(Q_WS_WIN) && !defined(Q_WS_WINCE) - QFontEngine::Type fontEngineType = ti.fontEngine->type(); - if ((fontEngineType == QFontEngine::Win && !((QFontEngineWin *) ti.fontEngine)->ttf && m.type() > QTransform::TxTranslate) + QFontEngine::Type fontEngineType = fontEngine->type(); + if ((fontEngineType == QFontEngine::Win && !((QFontEngineWin *) fontEngine)->ttf && m.type() > QTransform::TxTranslate) || (m.type() <= QTransform::TxTranslate && (fontEngineType == QFontEngine::TestFontEngine || fontEngineType == QFontEngine::Box))) { |