https://bugs.kde.org/show_bug.cgi?id=357548

--- Comment #19 from Christoph Feck <cf...@kde.org> ---
This could fix it. Feedback appreciated.

diff --git a/lib/documentview/rasterimageview.cpp
b/lib/documentview/rasterimageview.cpp
index 2131c07..02e18a6 100644
--- a/lib/documentview/rasterimageview.cpp
+++ b/lib/documentview/rasterimageview.cpp
@@ -314,9 +314,7 @@ void RasterImageView::slotDocumentIsAnimatedUpdated()
 void RasterImageView::updateFromScaler(int zoomedImageLeft, int
zoomedImageTop, const QImage& image)
 {
     if (d->mApplyDisplayTransform) {
-        if (!d->mDisplayTransform) {
-            d->updateDisplayTransform(image.format());
-        }
+        d->updateDisplayTransform(image.format());
         if (d->mDisplayTransform) {
             quint8 *bytes = const_cast<quint8*>(image.bits());
             cmsDoTransform(d->mDisplayTransform, bytes, bytes, image.width() *
image.height());

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to