path: root/src/gui
diff options
authorEskil Abrahamsen Blomfeldt <>2013-01-11 13:05:04 +0100
committerThe Qt Project <>2013-01-11 17:52:00 +0100
commit527a87eda836fa66b351cdd7077613c72cabadbb (patch)
tree5a9391f6f37088a726362397f534bfbd79cbf9a0 /src/gui
parent8927084d0acfea2bb3fc8a932069c1d5ceb001d0 (diff)
Fix regression in perspective-transformed text
Change 8927084d0acfea2bb3fc8a932069c1d5ceb001d0 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 <> Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/gui')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index 0b727619cd..f5b327ca94 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -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,