summaryrefslogtreecommitdiffstats
path: root/src/sp-filter.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-02-18 05:47:11 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-02-18 05:47:11 +0000
commita98ab31d6ed185ac36be908980170d5a22c0cdb1 (patch)
tree33e5adfaab4ab3b1c16cc99a29a82d2bc4983b63 /src/sp-filter.cpp
parentreverse the order of markers, because since rev 13483 stroke-style.cpp reads ... (diff)
downloadinkscape-a98ab31d6ed185ac36be908980170d5a22c0cdb1.tar.gz
inkscape-a98ab31d6ed185ac36be908980170d5a22c0cdb1.zip
standardize converting from number to string and back
(bzr r2389)
Diffstat (limited to 'src/sp-filter.cpp')
-rw-r--r--src/sp-filter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp
index 66cdf9aa0..c60ffb44f 100644
--- a/src/sp-filter.cpp
+++ b/src/sp-filter.cpp
@@ -319,8 +319,9 @@ sp_filter_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
}
if (filter->filterRes.getNumber()>=0) {
- char filterRes[32];
- repr->setAttribute("filterRes", filter->filterRes.getValueString(filterRes));
+ gchar *tmp = filter->filterRes.getValueString();
+ repr->setAttribute("filterRes", tmp);
+ g_free(tmp);
} else {
repr->setAttribute("filterRes", NULL);
}