Author: akv
Date: 2010-01-28 01:30:03 +0100 (Thu, 28 Jan 2010)
New Revision: 3103

Modified:
   branches/rawstudio-ng-color/src/rs-library.c
Log:
Using rs_normalize_path() when restoring tags.

Modified: branches/rawstudio-ng-color/src/rs-library.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-library.c        2010-01-28 00:22:28 UTC 
(rev 3102)
+++ branches/rawstudio-ng-color/src/rs-library.c        2010-01-28 00:30:03 UTC 
(rev 3103)
@@ -1157,7 +1157,7 @@
        xmlChar *val;
        gint version;
 
-       gchar *filename, *identifier, *tagname;
+       gchar *filename, *identifier, *tagname, *temp;
        gint autotag, photoid, tagid;
 
        doc = xmlParseFile(tagfile);
@@ -1176,7 +1176,9 @@
                if ((!xmlStrcmp(cur->name, BAD_CAST "file")))
                {
                        val = xmlGetProp(cur, BAD_CAST "name");
-                       filename = g_build_filename(directory, val, NULL);
+                       temp = g_build_filename(directory, val, NULL);
+                       filename = g_strdup(rs_normalize_path(temp));
+                       g_free(temp);
                        xmlFree(val);
 
                        photoid = library_find_photo_id(library, filename);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to