summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2010-06-07 09:41:10 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2010-06-07 09:44:04 (GMT)
commit90e009e9e273a4fea5166007e4c2b0638c6588cd (patch)
tree69934c951bac5db28d8c09f4177e340d1ad272ad /src/gui/painting
parent6c5a6ed08d0aa470daf46c9b5d9a2ce02bbb222f (diff)
downloadQt-90e009e9e273a4fea5166007e4c2b0638c6588cd.zip
Qt-90e009e9e273a4fea5166007e4c2b0638c6588cd.tar.gz
Qt-90e009e9e273a4fea5166007e4c2b0638c6588cd.tar.bz2
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
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qtransform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp
index 423cce9..47b7758 100644
--- a/src/gui/painting/qtransform.cpp
+++ b/src/gui/painting/qtransform.cpp
@@ -1626,7 +1626,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)