diff src/image.c @ 432:96f8389c36de

fixed max. number of profiles
author nadvornik
date Sat, 19 Apr 2008 21:20:08 +0000
parents a254a7102af5
children 1b0aee2b162e
line wrap: on
line diff
--- a/src/image.c	Sat Apr 19 21:18:24 2008 +0000
+++ b/src/image.c	Sat Apr 19 21:20:08 2008 +0000
@@ -1709,7 +1709,7 @@
 {
 	if (!imd) return;
 
-	if (input_type < 0 || input_type > COLOR_PROFILE_INPUTS ||
+	if (input_type < 0 || input_type >= COLOR_PROFILE_FILE + COLOR_PROFILE_INPUTS ||
 	    screen_type < 0 || screen_type > 1)
 		{
 		return;