diff src/image.c @ 1333:bdc19836c33d

Really fix up color profiles options tests. Add an indicator of the embedded color profile when recognized (a * just after sRGB or AdobeRGB compatible).
author zas_
date Fri, 27 Feb 2009 23:25:31 +0000
parents c37f36b97173
children 091ba3e6aedb
line wrap: on
line diff
--- a/src/image.c	Fri Feb 27 22:28:17 2009 +0000
+++ b/src/image.c	Fri Feb 27 23:25:31 2009 +0000
@@ -207,7 +207,7 @@
 		gint n;
 
 		n = imd->color_profile_input - COLOR_PROFILE_FILE;
-		if (!options->color_profile.input_file[n]) return FALSE;
+		if (!options->color_profile.input_file[n] || !options->color_profile.input_file[n][0]) return FALSE;
 
 		input_type = COLOR_PROFILE_FILE;
 		input_file = options->color_profile.input_file[n];
@@ -224,7 +224,8 @@
 		}
 
 	if (imd->color_profile_screen == 1 &&
-	    options->color_profile.screen_file)
+	    options->color_profile.screen_file &&
+	    options->color_profile.screen_file[0])
 		{
 		screen_type = COLOR_PROFILE_FILE;
 		screen_file = options->color_profile.screen_file;