Enable color manager in all fullscreen methods
authorKlaus Ethgen <Klaus@Ethgen.de>
Tue, 24 May 2016 11:42:42 +0000 (12:42 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Tue, 24 May 2016 11:42:42 +0000 (12:42 +0100)
For some reasons, that got lost when moving the image instead of
copying.

Fixes #375.

src/image.c

index 6f78dc9..0cd6735 100644 (file)
@@ -1196,6 +1196,17 @@ void image_move_from_image(ImageWindow *imd, ImageWindow *source)
        imd->color_profile_use_image = source->color_profile_use_image;
        color_man_free((ColorMan *)imd->cm);
        imd->cm = NULL;
+       if (source->cm)
+               {
+               ColorMan *cm;
+
+               imd->cm = source->cm;
+               source->cm = NULL;
+
+               cm = (ColorMan *)imd->cm;
+               cm->imd = imd;
+               cm->func_done_data = imd;
+               }
 
        file_data_unref(imd->read_ahead_fd);
        source->read_ahead_fd = NULL;