summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/parameter.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-08-17 20:30:10 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-08-17 20:30:10 +0000
commit32144cc14e87e3c3eede2966a874f17da9c24eba (patch)
tree8044c7a6c739386393357d085dd7b9db793bc4dd /src/live_effects/parameter/parameter.cpp
parentEnable center-dragging of boxes ('in perspective') within the XY-plane (diff)
downloadinkscape-32144cc14e87e3c3eede2966a874f17da9c24eba.tar.gz
inkscape-32144cc14e87e3c3eede2966a874f17da9c24eba.zip
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)
Diffstat (limited to 'src/live_effects/parameter/parameter.cpp')
-rw-r--r--src/live_effects/parameter/parameter.cpp8
1 files changed, 5 insertions, 3 deletions
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: