Code

LPE: implement NEW path-along-path effect, i think that old one has become obsolete...
[inkscape.git] / src / ui / dialog / livepatheffect-editor.cpp
index ec6c5c6ee7457cec187376f9488c7e00851916cc..b60d7e35774807b1d5945231d9f3a2eacecd9676 100644 (file)
@@ -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"));
         }