summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-01-11 13:05:04 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-11 17:52:00 +0100
commit527a87eda836fa66b351cdd7077613c72cabadbb (patch)
tree5a9391f6f37088a726362397f534bfbd79cbf9a0 /src
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 <eirik.aavitsland@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qfontengine.cpp2
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,