Code

fix lpe dialog updating
authorJohan Engelen <goejendaagh@zonnet.nl>
Tue, 18 May 2010 21:49:29 +0000 (23:49 +0200)
committerJohan Engelen <goejendaagh@zonnet.nl>
Tue, 18 May 2010 21:49:29 +0000 (23:49 +0200)
src/ui/dialog/livepatheffect-editor.cpp
src/ui/dialog/livepatheffect-editor.h

index dec437be938b23277b6d13f872f324ebf21863af..62ed4e63996da17a5bd47a436754afae036f4a28 100644 (file)
@@ -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<LivePathEffectEditor *>(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);
         }
     }
index 1152e8bb8ba1652570598d0e13c2f3ca5051646d..50e9486444c05efefd54ba1b4f9f3c1d7e48a6e0 100644 (file)
@@ -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);
 };