summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/parameter.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-03-03 00:12:41 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-03-26 17:48:34 +0000
commit95b1c7b549605d7c6ce6623cc4cd121ed7c51a64 (patch)
tree1c38b4fe6baabbf45c55e0929516dd825f7d6847 /src/live_effects/parameter/parameter.cpp
parentAllow building with USE_PANGO_WIN32. (diff)
downloadinkscape-95b1c7b549605d7c6ce6623cc4cd121ed7c51a64.tar.gz
inkscape-95b1c7b549605d7c6ce6623cc4cd121ed7c51a64.zip
Base LPE refactor
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);