diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 13:32:26 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-08-21 13:36:41 (GMT) |
commit | a022a65ca9f4c073c9490eb3d0831fa9d954c3e5 (patch) | |
tree | 5d9338dfea1de1b0997949ac3e2f4a46f4b3bb5f /src/gui/image | |
parent | ef93943579210dffaa83185cea99146fa9f3f9b6 (diff) | |
download | Qt-a022a65ca9f4c073c9490eb3d0831fa9d954c3e5.zip Qt-a022a65ca9f4c073c9490eb3d0831fa9d954c3e5.tar.gz Qt-a022a65ca9f4c073c9490eb3d0831fa9d954c3e5.tar.bz2 |
Doh, we have to convert the pixmap to an image.
Broke after 9d639659f2334bb5f3ea9b16b23bcb0127752f64
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qpixmapfilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qpixmapfilter.cpp b/src/gui/image/qpixmapfilter.cpp index 0bb948b..bc14b5e 100644 --- a/src/gui/image/qpixmapfilter.cpp +++ b/src/gui/image/qpixmapfilter.cpp @@ -1033,7 +1033,7 @@ void QPixmapDropShadowFilter::draw(QPainter *p, { Q_D(const QPixmapDropShadowFilter); - QImage tmp = src.isNull() ? px : px.copy(src.toRect()).toImage(); + QImage tmp = src.isNull() ? px.toImage() : px.copy(src.toRect()).toImage(); QPainter tmpPainter(&tmp); // blacken the image... |