Skip to content

Commit

Permalink
fixed max. number of profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Apr 19, 2008
1 parent 9fbfd4f commit 1879b71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,7 @@ void image_color_profile_set(ImageWindow *imd,
{
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;
Expand Down
2 changes: 1 addition & 1 deletion src/layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static void layout_color_menu_input_cb(GtkWidget *widget, gpointer data)
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;
Expand Down

0 comments on commit 1879b71

Please sign in to comment.