diff options
author | Stanislav Ionascu <stanislav.ionascu@nokia.com> | 2011-01-20 16:07:11 +0200 |
---|---|---|
committer | Armin Berres <armin.berres@basyskom.de> | 2011-01-20 15:14:52 +0100 |
commit | d4f36034ebe54c312cd60ef1cd06d0307f2018ba (patch) | |
tree | d5f2b49f6f8ab7a1ae61e1479e94488447b8c03a /src | |
parent | 7d68f0ee4dc362990f919d33e6902f345a1f43fc (diff) |
Fixes: Snapshot tries to paint into a NULL pixmap.
RevBy: Armin Berres
Details: The target bounding rect might be null on startup.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/animation/widget/mcontentfadeandslideanimation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/animation/widget/mcontentfadeandslideanimation.cpp b/src/corelib/animation/widget/mcontentfadeandslideanimation.cpp index 8f723a45..58df7e9c 100644 --- a/src/corelib/animation/widget/mcontentfadeandslideanimation.cpp +++ b/src/corelib/animation/widget/mcontentfadeandslideanimation.cpp @@ -34,6 +34,9 @@ void SnapshotItem::updateSnapshot(QGraphicsWidget* target) if (newSize != pixmap.size()) pixmap = QPixmap(newSize); + if (pixmap.isNull()) + return; + pixmap.fill(Qt::transparent); QPainter painter(&pixmap); |