[frogr] Fix tags importation to work better with some apps (e.g. f-spot)



commit c50163504282893eaddd36aa41107ec56e76e32c
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Thu Aug 18 19:29:33 2011 +0200

    Fix tags importation to work better with some apps (e.g. f-spot)

 src/frogr-picture-loader.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/frogr-picture-loader.c b/src/frogr-picture-loader.c
index f733916..e2cf82f 100644
--- a/src/frogr-picture-loader.c
+++ b/src/frogr-picture-loader.c
@@ -522,9 +522,9 @@ import_tags_from_xmp_keywords (const char *buffer, size_t len)
      present, that is, the keywords (aka the 'tags') */
   for (i = 0; i < len && !keywords_start; i++)
     {
-      comparison_substr = g_strndup (&buffer[i], 12);
-      if (g_str_has_prefix (comparison_substr, "<dc:subject>"))
-        keywords_start = g_strdup(&buffer[i+12]);
+      comparison_substr = g_strndup (&buffer[i], 11);
+      if (g_str_has_prefix (comparison_substr, "<dc:subject"))
+        keywords_start = g_strdup(&buffer[i]);
       g_free (comparison_substr);
     }
 



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