From: Johan Engelen Date: Tue, 18 May 2010 21:49:29 +0000 (+0200) Subject: fix lpe dialog updating X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=738092bcf0d040b2431137e191dfd7cf3ce3afad;p=inkscape.git fix lpe dialog updating --- diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index dec437be9..62ed4e639 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -51,9 +51,10 @@ namespace Dialog { /*#################### * Callback functions */ -static void lpeeditor_selection_changed (Inkscape::Selection * selection, gpointer data) +void lpeeditor_selection_changed (Inkscape::Selection * selection, gpointer data) { LivePathEffectEditor *lpeeditor = static_cast(data); + lpeeditor->lpe_list_locked = false; lpeeditor->onSelectionChanged(selection); } @@ -327,6 +328,7 @@ LivePathEffectEditor::setDesktop(SPDesktop *desktop) selection_modified_connection.disconnect(); } + lpe_list_locked = false; current_desktop = desktop; if (desktop) { Inkscape::Selection *selection = sp_desktop_selection(desktop); @@ -373,6 +375,7 @@ LivePathEffectEditor::onApply() sp_document_done(doc, SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Create and apply path effect")); + lpe_list_locked = false; onSelectionChanged(sel); } } diff --git a/src/ui/dialog/livepatheffect-editor.h b/src/ui/dialog/livepatheffect-editor.h index 1152e8bb8..50e948644 100644 --- a/src/ui/dialog/livepatheffect-editor.h +++ b/src/ui/dialog/livepatheffect-editor.h @@ -123,6 +123,8 @@ private: SPLPEItem * current_lpeitem; + friend void lpeeditor_selection_changed (Inkscape::Selection * selection, gpointer data); + LivePathEffectEditor(LivePathEffectEditor const &d); LivePathEffectEditor& operator=(LivePathEffectEditor const &d); };