changeset 270:67db7e4505c6

Move active variable affectation after the test.
author zas_
date Tue, 08 Apr 2008 15:53:03 +0000
parents dca6c0b9f862
children 35f9083c6b95
files src/layout.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout.c	Tue Apr 08 14:52:42 2008 +0000
+++ b/src/layout.c	Tue Apr 08 15:53:03 2008 +0000
@@ -391,11 +391,11 @@
 	return;
 #endif
 
-	active = layout_image_color_profile_get_use(lw);
 	if (!layout_image_color_profile_get(lw, &input, &screen, &use_image)) return;
 
 	menu = popup_menu_short_lived();
 
+	active = layout_image_color_profile_get_use(lw);
 	menu_item_add_check(menu, _("Use _color profiles"), active,
 			    G_CALLBACK(layout_color_menu_enable_cb), lw);