summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-04-26 23:06:31 +0000
committerJabiertxof <jtx@jtx>2017-04-26 23:06:31 +0000
commitaf42d5456d7f523d6cb259d0e2921234aa887146 (patch)
tree51b34dc9896bbecc7465dde2e772cf52a71b0429 /src/live_effects/effect.cpp
parentStart adding GUI to prefs (diff)
downloadinkscape-af42d5456d7f523d6cb259d0e2921234aa887146.tar.gz
inkscape-af42d5456d7f523d6cb259d0e2921234aa887146.zip
Add LPE prefs dialog
(bzr r15620.1.4)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 23af55cb3..5246dbf89 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -657,14 +657,14 @@ Effect::readallParameters(Inkscape::XML::Node const* repr)
g_warning("Effect::readallParameters - '%s' not accepted for %s", value, key);
}
} else {
- Glib::ustring prefs_path = (Glib::ustring)"/live_effects/" +
+ Glib::ustring pref_path = (Glib::ustring)"/live_effects/" +
(Glib::ustring)LPETypeConverter.get_key(effectType()).c_str() +
(Glib::ustring)"/" +
(Glib::ustring)key;
- bool valid = prefs->getEntry(prefs_path).isValid();
+ bool valid = prefs->getEntry(pref_path).isValid();
//add to preferences-skeleton the parameters you want reseteable
- if(valid && prefs->getString(prefs_path) != DEFAULT_PREF_VALUE){
- param->param_update_default(prefs->getString(prefs_path).c_str());
+ if(valid && prefs->getString(pref_path) != DEFAULT_PREF_VALUE){
+ param->param_update_default(prefs->getString(pref_path).c_str());
} else {
param->param_set_default();
}