Mercurial > geeqie.yaz
changeset 432:96f8389c36de
fixed max. number of profiles
author | nadvornik |
---|---|
date | Sat, 19 Apr 2008 21:20:08 +0000 |
parents | d7272434b8c2 |
children | 5ddcf93278c7 |
files | src/image.c src/layout.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;
--- 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;