Fix regression in perspective-transformed text

Change 8927084d0a made a mistake in
reversing the boolean logic of the type >= TxProject logic,
causing us to try to use the font engine for perspective
transformations instead of falling back to QPainterPath.

Change-Id: Ideb59751ace23ab83f8ebd4f02dbe6c1724644a5
Reviewed-by: aavit <eirik.aavitsland@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2013-01-11 13:05:04 +01:00 committed by The Qt Project
parent 8927084d0a
commit 527a87eda8

View File

@ -270,7 +270,7 @@ QFixed QFontEngine::averageCharWidth() const
bool QFontEngine::supportsTransformation(const QTransform &transform) const
{
return transform.type() <= QTransform::TxProject;
return transform.type() < QTransform::TxProject;
}
void QFontEngine::getGlyphPositions(const QGlyphLayout &glyphs, const QTransform &matrix, QTextItem::RenderFlags flags,