Author: post
Date: 2010-04-05 19:39:47 +0200 (Mon, 05 Apr 2010)
New Revision: 3345
Modified:
trunk/librawstudio/rs-lens-db-editor.c
Log:
Fix bug #375, Crash in Lens Library. Thanks to Emmanuel Viaud for reporting
(and fixing) it.
Modified: trunk/librawstudio/rs-lens-db-editor.c
===================================================================
--- trunk/librawstudio/rs-lens-db-editor.c 2010-04-05 16:15:28 UTC (rev
3344)
+++ trunk/librawstudio/rs-lens-db-editor.c 2010-04-05 17:39:47 UTC (rev
3345)
@@ -319,7 +319,9 @@
GtkTreeModel *model = NULL;
GtkTreeIter iter;
- gtk_tree_selection_get_selected(selection, &model, &iter);
+ gboolean ret = gtk_tree_selection_get_selected(selection, &model,
&iter);
+ if (ret == FALSE)
+ return;
RSLens *rs_lens = NULL;
gtk_tree_model_get (model, &iter,
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit