Code

functional noop: Clarify g_strcanon behaviour by not redundantly reassigning back...
authorpjrm <pjrm@users.sourceforge.net>
Tue, 7 Apr 2009 04:04:51 +0000 (04:04 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Tue, 7 Apr 2009 04:04:51 +0000 (04:04 +0000)
src/selection-chemistry.cpp

index 891e958a535c181f0dda5c48a86f7a7d0592e28e..2ea1de143ed1390a38992b869fc98b631d9b7e63 100644 (file)
@@ -2519,7 +2519,7 @@ sp_selection_create_bitmap_copy (SPDesktop *desktop)
     gchar *filename = g_strdup_printf ("%s-%s-%u.png", document->name, SP_OBJECT_REPR(items->data)->attribute("id"), current);
     // Imagemagick is known not to handle spaces in filenames, so we replace anything but letters,
     // digits, and a few other chars, with "_"
-    filename = g_strcanon (filename, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.=+~$#@^&!?", '_');
+    g_strcanon(filename, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.=+~$#@^&!?", '_');
 
     // Build the complete path by adding document base dir, if set, otherwise home dir
     gchar * directory = NULL;