summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/fontbutton.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-04-14 22:20:13 +0000
committerJabiertxof <jtx@jtx>2017-04-14 22:20:13 +0000
commit3103b99b4cf6c1048c89f75e280761d8cd0ca1c2 (patch)
treea79bdf40cb476839681f10c61f51a3c4d860fcbc /src/live_effects/parameter/fontbutton.cpp
parentEllipses in Inkscape are defined by the center and the radius, but the (diff)
downloadinkscape-3103b99b4cf6c1048c89f75e280761d8cd0ca1c2.tar.gz
inkscape-3103b99b4cf6c1048c89f75e280761d8cd0ca1c2.zip
Allow set and reset default values of LPE parameters
(bzr r15620.1.1)
Diffstat (limited to 'src/live_effects/parameter/fontbutton.cpp')
-rw-r--r--src/live_effects/parameter/fontbutton.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/live_effects/parameter/fontbutton.cpp b/src/live_effects/parameter/fontbutton.cpp
index 64c203093..53b8c0612 100644
--- a/src/live_effects/parameter/fontbutton.cpp
+++ b/src/live_effects/parameter/fontbutton.cpp
@@ -33,9 +33,11 @@ FontButtonParam::param_set_default()
{
param_setValue(defvalue);
}
+
void
-FontButtonParam::param_update_default(const Glib::ustring default_value){
- defvalue = default_value;
+FontButtonParam::param_update_default(const gchar * default_value)
+{
+ defvalue = (Glib::ustring)strdup(default_value);
}
bool
@@ -63,7 +65,7 @@ FontButtonParam::param_newWidget()
*param_wr,
param_effect->getRepr(),
param_effect->getSPDoc() ) );
- Glib::ustring fontspec = param_getSVGValue();
+ Glib::ustring fontspec = (Glib::ustring)param_getSVGValue();
fontbuttonwdg->setValue( fontspec);
fontbuttonwdg->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change font button parameter"));
param_effect->upd_params = false;
@@ -71,11 +73,12 @@ FontButtonParam::param_newWidget()
}
void
-FontButtonParam::param_setValue(const Glib::ustring newvalue)
+FontButtonParam::param_setValue(Glib::ustring newvalue)
{
value = newvalue;
}
+
} /* namespace LivePathEffect */
} /* namespace Inkscape */