summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-08 05:02:46 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-08 05:02:46 (GMT)
commit838e3f7771cc0d8b8ca1802b8bc73d4f37cbb107 (patch)
tree92f831b1cbd019af064a41534691561eb94bee77
parent36aef0b2c67a879a148b1f82d51e252968da0578 (diff)
downloadQt-838e3f7771cc0d8b8ca1802b8bc73d4f37cbb107.zip
Qt-838e3f7771cc0d8b8ca1802b8bc73d4f37cbb107.tar.gz
Qt-838e3f7771cc0d8b8ca1802b8bc73d4f37cbb107.tar.bz2
Fix painting to pixmap.
If we render the graphics view in a pixmap effectiveClip is empty. From Marco
-rw-r--r--src/declarative/graphicsitems/qmlgraphicspainteditem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
index 146b1e4..e50e3e4 100644
--- a/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicspainteditem.cpp
@@ -256,7 +256,7 @@ void QmlGraphicsPaintedItem::paint(QPainter *p, const QStyleOptionGraphicsItem *
topaint = QRect(0,0,p->device()->width(),p->device()->height());
else
topaint = effectiveClip;
- } else {
+ } else if (!effectiveClip.isEmpty()) {
topaint &= effectiveClip;
}