summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/livepatheffect-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/livepatheffect-editor.cpp')
-rw-r--r--src/ui/dialog/livepatheffect-editor.cpp8
1 files changed, 7 insertions, 1 deletions
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"));
}