diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2010-06-07 11:41:10 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 13:06:10 +0300 |
commit | a8bdabd1c8538f43a17a64ccc93d3df604d18bae (patch) | |
tree | cf68ce58024998e1d192cbb69e778e92b6173326 /src/gui | |
parent | 74a67cfb47726008e9bb0acc34bb733132f4242f (diff) | |
download | qt4-tools-a8bdabd1c8538f43a17a64ccc93d3df604d18bae.tar.gz |
Fix QTransform::map(const QPainterPath &) not working with paths that
have only one element
Replaced the isEmpty() check for the shortcut in map() with elementCount() == 0
Task-number: QTBUG-11264
Reviewed-by: Samuel
(cherry picked from commit 90e009e9e273a4fea5166007e4c2b0638c6588cd)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qtransform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp index ba2145480a..995bac8bc0 100644 --- a/src/gui/painting/qtransform.cpp +++ b/src/gui/painting/qtransform.cpp @@ -1565,7 +1565,7 @@ static QPainterPath mapProjective(const QTransform &transform, const QPainterPat QPainterPath QTransform::map(const QPainterPath &path) const { TransformationType t = inline_type(); - if (t == TxNone || path.isEmpty()) + if (t == TxNone || path.elementCount() == 0) return path; if (t >= TxProject) |