diff options
author | Torsten Rahn <Torsten.Rahn@basyskom.de> | 2010-06-07 14:46:24 +0200 |
---|---|---|
committer | Torsten Rahn <Torsten.Rahn@basyskom.de> | 2010-06-07 14:46:24 +0200 |
commit | 9713408e4d630b45d651c80a694db654e5066953 (patch) | |
tree | 98c3ee2c67baa26274e5ff147ea5b3a4f8fa9ef0 /plainqt | |
parent | 80a80e19a809a52e0ddcede882ff117cf325fb32 (diff) |
Fixes: Don't paint onto an invalid QPixmap.
RevBy: Bernd Lamecker
Diffstat (limited to 'plainqt')
-rw-r--r-- | plainqt/style/qtmaemo6style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plainqt/style/qtmaemo6style.cpp b/plainqt/style/qtmaemo6style.cpp index 6e7d18f5..082e3a4c 100644 --- a/plainqt/style/qtmaemo6style.cpp +++ b/plainqt/style/qtmaemo6style.cpp @@ -299,7 +299,7 @@ void QtMaemo6StylePrivate::drawScalableImage(QPainter *p, .arg(rect.width()) .arg(rect.height()); - if (!enableCache || !QPixmapCache::find(cacheKey, backgroundPixmap)) { + if ((!enableCache || !QPixmapCache::find(cacheKey, backgroundPixmap)) && rect.isValid()) { backgroundPixmap.fill(Qt::transparent); QPainter pixmapPainter; pixmapPainter.begin(&backgroundPixmap); |