diff src/layout.c @ 432:96f8389c36de

fixed max. number of profiles
author nadvornik
date Sat, 19 Apr 2008 21:20:08 +0000
parents 9fe0ca1b5263
children 5ddcf93278c7
line wrap: on
line diff
--- a/src/layout.c	Sat Apr 19 21:18:24 2008 +0000
+++ b/src/layout.c	Sat Apr 19 21:20:08 2008 +0000
@@ -337,7 +337,7 @@
 	if (!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) return;
 
 	type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), COLOR_MENU_KEY));
-	if (type < 0 || type > COLOR_PROFILE_INPUTS) return;
+	if (type < 0 || type >= COLOR_PROFILE_FILE + COLOR_PROFILE_INPUTS) return;
 
 	if (!layout_image_color_profile_get(lw, &input, &screen, &use_image)) return;
 	if (type == input) return;