[Rawstudio-commit] r2393 - branches/rawstudio-library/src

Anders Kvist anders at kvistmail.dk
Thu Apr 23 14:21:15 CEST 2009


Author: akv
Date: 2009-04-23 14:21:15 +0200 (Thu, 23 Apr 2009)
New Revision: 2393

Modified:
   branches/rawstudio-library/src/rs-library.c
Log:
Don't create default tags when values is -1.

Modified: branches/rawstudio-library/src/rs-library.c
===================================================================
--- branches/rawstudio-library/src/rs-library.c	2009-04-22 23:46:03 UTC (rev 2392)
+++ branches/rawstudio-library/src/rs-library.c	2009-04-23 12:21:15 UTC (rev 2393)
@@ -445,7 +445,7 @@
 		rs_library_add_tag(library, metadata->model_ascii);
 		rs_library_photo_add_tag(library, photo, metadata->model_ascii);
 	}
-	if (metadata->lens_min_focal && metadata->lens_max_focal)
+	if (metadata->lens_min_focal != -1 && metadata->lens_max_focal != -1)
 	{
 		gchar *lens = NULL;
 		if (metadata->lens_min_focal == metadata->lens_max_focal)
@@ -457,7 +457,7 @@
 		g_free(lens);
 
 	}
-	if (metadata->focallength)
+	if (metadata->focallength != -1)
 	{
 		gchar *text = NULL;
 		if (metadata->focallength < 50)
@@ -468,7 +468,7 @@
 		rs_library_photo_add_tag(library, photo, text);
 		g_free(text);
 	}
-	if (metadata->timestamp)
+	if (metadata->timestamp != -1)
 	{
 		gchar *year = NULL;
 		gchar *month = NULL;




More information about the Rawstudio-commit mailing list