changeset 1550:ffc44762e706

color profile fixes
author nadvornik
date Mon, 13 Apr 2009 22:40:47 +0000
parents 7302ff300a52
children cb471078cc8e 8c018844df9a
files src/image.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Mon Apr 13 14:39:50 2009 +0000
+++ b/src/image.c	Mon Apr 13 22:40:47 2009 +0000
@@ -243,7 +243,7 @@
 		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 @@
 #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;
 }