[gthumb] Add another string to the stupid comment filter - bug 586165



commit 548a367699af9ebccd1438758220a0610e6c6fd0
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Wed Jun 17 15:51:13 2009 -0400

    Add another string to the stupid comment filter - bug 586165
    
    Also, only match the start of the comment.

 libgthumb/gth-exif-utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgthumb/gth-exif-utils.c b/libgthumb/gth-exif-utils.c
index a4a7ce0..8f14657 100644
--- a/libgthumb/gth-exif-utils.c
+++ b/libgthumb/gth-exif-utils.c
@@ -159,6 +159,7 @@ const char *stupid_comment_filter[] = {
 	"OLYMPUS DIGITAL CAMERA",
 	"SONY DSC",
 	"KONICA MINOLTA DIGITAL CAMERA",
+	"MINOLTA DIGITAL CAMERA",
 	NULL };
 
 
@@ -328,7 +329,7 @@ get_metadata_tagset_string (FileData *fd, const char *tagnames[])
 	    (!strcmp (tagnames[i-1], "Exif.Photo.UserComment") ||
 	     !strcmp (tagnames[i-1], "Exif.Image.ImageDescription"))) {
 		for (i = 0; (string != NULL) && (stupid_comment_filter[i] != NULL); i++) {
-			if (strstr (string, stupid_comment_filter[i]) != NULL) {
+			if (strstr (string, stupid_comment_filter[i]) == string) {
 				g_free (string);
 				string = NULL;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]