summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorPeter Moulder <peter.moulder@monash.edu>2009-04-07 04:04:51 +0000
committerpjrm <pjrm@users.sourceforge.net>2009-04-07 04:04:51 +0000
commit6ccd8075660ecc5978cbf3821ad016a660c21d83 (patch)
tree4ca40ff241de87d84ea8f7dfe5a16793167fb8a6 /src/selection-chemistry.cpp
parentfunctional noop: xml/repr-io.cpp: (sp_repr_save_writer): Mark static. Slight... (diff)
downloadinkscape-6ccd8075660ecc5978cbf3821ad016a660c21d83.tar.gz
inkscape-6ccd8075660ecc5978cbf3821ad016a660c21d83.zip
functional noop: Clarify g_strcanon behaviour by not redundantly reassigning back to argument.
(bzr r7642)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 891e958a5..2ea1de143 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -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;