Author: post
Date: 2011-02-26 20:50:22 +0100 (Sat, 26 Feb 2011)
New Revision: 3835
Modified:
trunk/src/gtk-interface.c
Log:
Fix crash when changing rapidly between images.
Modified: trunk/src/gtk-interface.c
===================================================================
--- trunk/src/gtk-interface.c 2011-02-26 19:49:38 UTC (rev 3834)
+++ trunk/src/gtk-interface.c 2011-02-26 19:50:22 UTC (rev 3835)
@@ -198,7 +198,7 @@
g_object_ref(rs->filter_demosaic_cache);
rs->photo->auto_wb_filter = rs->filter_demosaic_cache;
for (i=0;i<3;i++)
- if (g_strcmp0(photo->settings[i]->wb_ascii, PRESET_WB_AUTO) ==
0)
+ if (photo && photo->settings[i] && photo->settings[i]->wb_ascii
&& g_strcmp0(photo->settings[i]->wb_ascii, PRESET_WB_AUTO) == 0)
rs_photo_set_wb_auto(rs->photo, i);
rs_core_actions_update_menu_items(rs);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit