Skip to content

Commit

Permalink
Enable color manager in all fullscreen methods
Browse files Browse the repository at this point in the history
For some reasons, that got lost when moving the image instead of
copying.

Fixes #375.
  • Loading branch information
mowgli committed May 24, 2016
1 parent 1bfcecb commit 5a2c041
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a2c041

Please sign in to comment.