summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-08-20 03:16:23 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-08-20 03:16:23 +0000
commit9225fd3f29be0822c556f4ca2a8a6ec3099377f9 (patch)
treefdb1a8ea2013aac3f8c0f73ff95d29e55bc13dc7 /src/live_effects
parentmacosx packaging: a few minor changes (diff)
parentClear the waiting cursor on the old desktop after creating a new one (diff)
downloadinkscape-9225fd3f29be0822c556f4ca2a8a6ec3099377f9.tar.gz
inkscape-9225fd3f29be0822c556f4ca2a8a6ec3099377f9.zip
update to trunk (r13528)
(bzr r13506.1.18)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/parameter/parameter.cpp8
-rw-r--r--src/live_effects/parameter/parameter.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp
index a5de2169e..ad2960cd9 100644
--- a/src/live_effects/parameter/parameter.cpp
+++ b/src/live_effects/parameter/parameter.cpp
@@ -36,13 +36,19 @@ Parameter::Parameter( const Glib::ustring& label, const Glib::ustring& tip,
{
}
-
void
Parameter::param_write_to_repr(const char * svgd)
{
param_effect->getRepr()->setAttribute(param_key.c_str(), svgd);
}
+void Parameter::write_to_SVG(void)
+{
+ gchar * str = param_getSVGValue();
+ param_write_to_repr(str);
+ g_free(str);
+}
+
/*###########################################
* REAL PARAM
*/
diff --git a/src/live_effects/parameter/parameter.h b/src/live_effects/parameter/parameter.h
index 785ada92e..2e6cae49f 100644
--- a/src/live_effects/parameter/parameter.h
+++ b/src/live_effects/parameter/parameter.h
@@ -49,7 +49,7 @@ public:
virtual bool param_readSVGValue(const gchar * strvalue) = 0; // returns true if new value is valid / accepted.
virtual gchar * param_getSVGValue() const = 0;
- void write_to_SVG() { param_write_to_repr(param_getSVGValue()); }
+ void write_to_SVG();
virtual void param_set_default() = 0;