From 1a0fcd98af5334f810752a7b5ad6269f2ed2ab25 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Mon, 14 Jul 2008 10:22:27 +0000 Subject: Enable simultaneous knotholder and nodepath (bzr r6291) --- src/node-context.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/node-context.cpp') diff --git a/src/node-context.cpp b/src/node-context.cpp index 9a4bff88e..a72501af7 100644 --- a/src/node-context.cpp +++ b/src/node-context.cpp @@ -162,7 +162,8 @@ sp_node_context_setup(SPEventContext *ec) nc->current_state = SP_NODE_CONTEXT_INACTIVE; if (item) { - nc->shape_editor->set_item(item); + nc->shape_editor->set_item(item, SH_NODEPATH); + nc->shape_editor->set_item(item, SH_KNOTHOLDER); } if (prefs_get_int_attribute("tools.nodes", "selcue", 0) != 0) { @@ -211,9 +212,11 @@ sp_node_context_selection_changed(Inkscape::Selection *selection, gpointer data) SPNodeContext *nc = SP_NODE_CONTEXT(data); // TODO: update ShapeEditorsCollective instead - nc->shape_editor->unset_item(); + nc->shape_editor->unset_item(SH_NODEPATH); + nc->shape_editor->unset_item(SH_KNOTHOLDER); SPItem *item = selection->singleItem(); - nc->shape_editor->set_item(item); + nc->shape_editor->set_item(item, SH_NODEPATH); + nc->shape_editor->set_item(item, SH_KNOTHOLDER); nc->shape_editor->update_statusbar(); } -- cgit v1.2.3