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/path.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/live_effects/parameter/path.cpp') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 90974f686..d2615901f 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -33,11 +33,12 @@ namespace LivePathEffect { PathParam::PathParam( const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, - Effect* effect ) + Effect* effect, const gchar * defvalue) : Parameter(label, tip, key, wr, effect) { _widget = NULL; _tooltips = NULL; + param_readSVGValue(defvalue); } PathParam::~PathParam() @@ -150,9 +151,9 @@ PathParam::param_write_to_repr(const char * svgd) } -}; /* namespace LivePathEffect */ +} /* namespace LivePathEffect */ -}; /* namespace Inkscape */ +} /* namespace Inkscape */ /* Local Variables: -- cgit v1.2.3