From 5a2c041e29c38b7761d65fe29818b19e685196e4 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Tue, 24 May 2016 12:42:42 +0100 Subject: [PATCH] Enable color manager in all fullscreen methods For some reasons, that got lost when moving the image instead of copying. Fixes #375. --- src/image.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/image.c b/src/image.c index 6f78dc9e..0cd67355 100644 --- a/src/image.c +++ b/src/image.c @@ -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; -- 2.20.1