diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-08 05:02:46 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-08 05:02:46 (GMT) |
commit | 838e3f7771cc0d8b8ca1802b8bc73d4f37cbb107 (patch) | |
tree | 92f831b1cbd019af064a41534691561eb94bee77 /src/declarative/graphicsitems/qmlgraphicspainteditem.cpp | |
parent | 36aef0b2c67a879a148b1f82d51e252968da0578 (diff) | |
download | Qt-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
Diffstat (limited to 'src/declarative/graphicsitems/qmlgraphicspainteditem.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicspainteditem.cpp | 2 |
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; } |