Author: akv
Date: 2010-05-26 19:05:55 +0200 (Wed, 26 May 2010)
New Revision: 3380
Modified:
trunk/src/rs-toolbox.c
Log:
Setting toolbox->rs_lens to NULL if a lens_identifier isn't found.
Modified: trunk/src/rs-toolbox.c
===================================================================
--- trunk/src/rs-toolbox.c 2010-05-26 15:40:31 UTC (rev 3379)
+++ trunk/src/rs-toolbox.c 2010-05-26 17:05:55 UTC (rev 3380)
@@ -978,6 +978,8 @@
if (photo->metadata->lens_identifier) {
RSLensDb *lens_db = rs_lens_db_get_default();
toolbox->rs_lens =
rs_lens_db_get_from_identifier(lens_db, photo->metadata->lens_identifier);
+ } else {
+ toolbox->rs_lens = NULL;
}
toolbox_lens_set_label(toolbox, snapshot);
@@ -1114,4 +1116,4 @@
rs_core_action_group_add_radio_actions(select_snapshot,
n_select_snapshot, 0, G_CALLBACK(action_changed), toolbox);
rs_core_action_group_add_actions(actionentries, n_actionentries,
toolbox);
-}
\ No newline at end of file
+}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit