Fix #603, 971: lcms2 support broken / images with embedded color profile
[geeqie.git] / src / color-man.c
index 1c8c47a..dda2e2c 100644 (file)
@@ -316,6 +316,13 @@ void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, g
        pix = gdk_pixbuf_get_pixels(pixbuf);
        rs = gdk_pixbuf_get_rowstride(pixbuf);
 
+       /** @FIXME: x,y expected to be = 0. Maybe this is not the right place for scaling */
+       if (!options->image.use_clutter_renderer)
+               {
+               w = w * scale_factor();
+               h = h * scale_factor();
+               }
+
        w = MIN(w, pixbuf_width - x);
        h = MIN(h, pixbuf_height - y);