diff options
| -rw-r--r-- | Source/WebCore/platform/graphics/qt/ImageQt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/qt/ImageQt.cpp b/Source/WebCore/platform/graphics/qt/ImageQt.cpp index 228518f66..9e4408b61 100644 --- a/Source/WebCore/platform/graphics/qt/ImageQt.cpp +++ b/Source/WebCore/platform/graphics/qt/ImageQt.cpp @@ -45,6 +45,7 @@ #include <QImage> #include <QImageReader> #include <QPainter> +#include <QPaintEngine> #include <QPixmap> #include <QPixmapCache> #include <QTransform> @@ -241,6 +242,9 @@ QPixmap* prescaleImageIfRequired(QPainter* painter, QPixmap* image, QPixmap* buf if (!(painter->renderHints() & QPainter::SmoothPixmapTransform)) return image; + if (painter->paintEngine()->type() != QPaintEngine::Raster) + return image; + QTransform transform = painter->combinedTransform(); // Prescaling transforms that does more than scale or translate is not supported. |
