From 2fb0d596bc5823f8d72a8a4262e147231170c9cd Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 30 Oct 2007 22:37:20 +0000 Subject: LPE: implement NEW path-along-path effect, i think that old one has become obsolete and is renamed accordingly. implement straight path node editting for gears effect. (bzr r3983) --- src/ui/dialog/livepatheffect-editor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ui/dialog/livepatheffect-editor.cpp') diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index ec6c5c6ee..b60d7e357 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -108,7 +108,8 @@ LivePathEffectEditor::LivePathEffectEditor(Behavior::BehaviorFactory behavior_fa setDesktop(SP_ACTIVE_DESKTOP); show_all_children(); - button_remove.hide(); + + button_remove.hide(); } LivePathEffectEditor::~LivePathEffectEditor() @@ -267,6 +268,11 @@ LivePathEffectEditor::onApply() } } + LivePathEffectObject *lpeobj = sp_shape_get_livepatheffectobject(SP_SHAPE(item)); + if (lpeobj && lpeobj->lpe) { + lpeobj->lpe->resetDefaults(item); + } + sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Create and apply path effect")); } -- cgit v1.2.3