diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-08-17 20:30:10 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-08-17 20:30:10 +0000 |
| commit | 32144cc14e87e3c3eede2966a874f17da9c24eba (patch) | |
| tree | 8044c7a6c739386393357d085dd7b9db793bc4dd /src/live_effects/parameter/path.cpp | |
| parent | Enable center-dragging of boxes ('in perspective') within the XY-plane (diff) | |
| download | inkscape-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/path.cpp')
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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:
|
