From 32144cc14e87e3c3eede2966a874f17da9c24eba Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 17 Aug 2007 20:30:10 +0000 Subject: Fix LPE: * add default values for parameters * remove text for LPE_INVALID * update example for skel strokes * clean a bit of the code (bzr r3498) --- src/live_effects/parameter/parameter.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/live_effects/parameter/parameter.cpp') diff --git a/src/live_effects/parameter/parameter.cpp b/src/live_effects/parameter/parameter.cpp index 6806a1d49..beaafcc22 100644 --- a/src/live_effects/parameter/parameter.cpp +++ b/src/live_effects/parameter/parameter.cpp @@ -62,6 +62,8 @@ RealParam::param_readSVGValue(const gchar * strvalue) unsigned int success = sp_svg_number_read_d(strvalue, &newval); if (success == 1) { value = newval; + if (rsu) + rsu->setValue(value); return true; } return false; @@ -71,7 +73,7 @@ gchar * RealParam::param_writeSVGValue() const { Inkscape::SVGOStringStream os; - os << rsu->getS()->getValue(); + os << value; gchar * str = g_strdup(os.str().c_str()); return str; } @@ -89,9 +91,9 @@ RealParam::param_getWidget() } -}; /* namespace LivePathEffect */ +} /* namespace LivePathEffect */ -}; /* namespace Inkscape */ +} /* namespace Inkscape */ /* Local Variables: -- cgit v1.2.3