color profile fixes
authorVladimir Nadvornik <nadvornik@suse.cz>
Mon, 13 Apr 2009 22:40:47 +0000 (22:40 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Mon, 13 Apr 2009 22:40:47 +0000 (22:40 +0000)
src/image.c

index 6cddac8..9e01a12 100644 (file)
@@ -243,7 +243,7 @@ static gboolean image_post_process_color(ImageWindow *imd, gint start_row, gbool
                screen_type = COLOR_PROFILE_MEM;
                DEBUG_1("Using X11 screen profile, length: %d", screen_profile_len);
                }
-       if (options->color_profile.screen_file &&
+       else if (options->color_profile.screen_file &&
            is_readable_file(options->color_profile.screen_file))
                {
                screen_type = COLOR_PROFILE_FILE;
@@ -348,10 +348,10 @@ static gboolean image_post_process_color(ImageWindow *imd, gint start_row, gbool
 #if 0
                if (run_in_bg) color_man_start_bg(imd->cm, image_post_process_color_cb, imd);
 #endif
-               return TRUE;
                }
 
-       return FALSE;
+       image_update_util(imd);
+       return !!cm;
 }