diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-01-15 14:29:14 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-01-15 14:29:14 +0000 |
| commit | 63273692c4e638b46a9e84026f62721784ec2cb4 (patch) | |
| tree | dbeabf7fddd50b809fee9384643a636c0a36438b /src/ui/dialog/livepatheffect-editor.cpp | |
| parent | M AUTHORS (diff) | |
| download | inkscape-63273692c4e638b46a9e84026f62721784ec2cb4.tar.gz inkscape-63273692c4e638b46a9e84026f62721784ec2cb4.zip | |
prepare LPE parameter widgets to be owned by multiple dialogs, as it should be.
For each parameter function that has not been re-implemented, a warning is issued.
Sorry for the huge number of warnings showing when working with LPE. It is important to fix this asap.
(bzr r4495)
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index b1dfda573..93e17c324 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -97,6 +97,7 @@ LivePathEffectEditor::~LivePathEffectEditor() { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } @@ -111,11 +112,12 @@ LivePathEffectEditor::showParams(LivePathEffect::Effect* effect) { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } explain_label.set_markup("<b>" + effect->getName() + "</b>"); - effectwidget = effect->getWidget(); + effectwidget = effect->newWidget(&tooltips); if (effectwidget) { effectcontrol_vbox.pack_start(*effectwidget, true, true); } @@ -130,6 +132,7 @@ LivePathEffectEditor::showText(Glib::ustring const &str) { if (effectwidget) { effectcontrol_vbox.remove(*effectwidget); + delete effectwidget; effectwidget = NULL; } |
