Skip to content

Commit 25d972e

Browse files
author
Andy Shaw
committed
Check world matrix is true when seeing if transformations are supported
If the world matrix is turned off then if the raster paintengine should not support transformations for the text as otherwise it could end up being incorrectly transformed. Task-number: QTBUG-35200 Change-Id: I68fa6654ee87016986ba9d9469673fc8b9e0875e Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
1 parent 62323e8 commit 25d972e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/painting/qpaintengine_raster.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3418,6 +3418,8 @@ void QRasterPaintEngine::releaseDC(HDC) const
34183418

34193419
bool QRasterPaintEngine::supportsTransformations(const QFontEngine *fontEngine) const
34203420
{
3421+
if (!state()->WxF)
3422+
return false;
34213423
const QTransform &m = state()->matrix;
34223424
#if defined(Q_WS_WIN) && !defined(Q_WS_WINCE)
34233425
QFontEngine::Type fontEngineType = fontEngine->type();

0 commit comments

Comments
 (0)