summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/graphicsitems/qmlgraphicspainteditem.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
index a0d9b09..2f0a585 100644
--- a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
@@ -209,13 +209,7 @@ void QmlGraphicsPaintedItem::paint(QPainter *p, const QStyleOptionGraphicsItem *
++inpaint;
- QRectF clipf = p->clipRegion().boundingRect();
- if (clipf.isEmpty())
- clipf = mapToScene(content).boundingRect(); // ### Inefficient: Maps toScene and then fromScene
- else
- clipf = mapToScene(clipf).boundingRect();
-
- const QRect clip = mapFromScene(clipf).boundingRect().toRect();
+ const QRect clip = p->clipRegion().boundingRect();
QRegion topaint(clip);
topaint &= content;