summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/parameter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/parameter/parameter.cpp')
-rw-r--r--src/live_effects/parameter/parameter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp
index 497113e03..a175359f0 100644
--- a/src/live_effects/parameter/parameter.cpp
+++ b/src/live_effects/parameter/parameter.cpp
@@ -91,8 +91,7 @@ ScalarParam::param_getSVGValue() const
{
Inkscape::SVGOStringStream os;
os << value;
- gchar * str = g_strdup(os.str().c_str());
- return str;
+ return g_strdup(os.str().c_str());
}
gchar *
@@ -100,8 +99,7 @@ ScalarParam::param_getDefaultSVGValue() const
{
Inkscape::SVGOStringStream os;
os << defvalue;
- gchar * str = g_strdup(os.str().c_str());
- return str;
+ return g_strdup(os.str().c_str());
}
void
@@ -129,6 +127,9 @@ ScalarParam::param_update_default(const gchar * default_value)
void
ScalarParam::param_set_value(gdouble val)
{
+ if (value != val) {
+ param_effect->upd_params = true;
+ }
value = val;
if (integer)
value = round(value);