summaryrefslogtreecommitdiffstats
path: root/src/nodepath.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-14 21:33:11 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-14 21:33:11 +0000
commit181d1e66302e2a6296f228a74e4840b797b5eba7 (patch)
tree0315e36d536286e813d19018f47eec191496948e /src/nodepath.cpp
parentRemove further instances of SP_ACTIVE_DESKTOP (diff)
downloadinkscape-181d1e66302e2a6296f228a74e4840b797b5eba7.tar.gz
inkscape-181d1e66302e2a6296f228a74e4840b797b5eba7.zip
Get rid of a whole bunch of further instances of SP_ACTIVE_DESKTOP (where the desktop is readily available in the calling function)
(bzr r6629)
Diffstat (limited to 'src/nodepath.cpp')
-rw-r--r--src/nodepath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodepath.cpp b/src/nodepath.cpp
index 4260d03c8..0f6224093 100644
--- a/src/nodepath.cpp
+++ b/src/nodepath.cpp
@@ -2454,7 +2454,7 @@ void sp_node_delete_preserve(GList *nodes_to_delete)
//FIXME: The following line will be wrong when we have mltiple nodepaths: we only want to
//delete this nodepath's object, not the entire selection! (though at this time, this
//does not matter)
- sp_selection_delete();
+ sp_selection_delete(nodepath->desktop);
sp_document_done (document, SP_VERB_CONTEXT_NODE,
_("Delete nodes"));
} else {
@@ -2490,7 +2490,7 @@ void sp_node_selected_delete(Inkscape::NodePath::Path *nodepath)
if (nodepath->subpaths == NULL ||
sp_nodepath_get_node_count(nodepath) < 2) {
SPDocument *document = sp_desktop_document (nodepath->desktop);
- sp_selection_delete();
+ sp_selection_delete(nodepath->desktop);
sp_document_done (document, SP_VERB_CONTEXT_NODE,
_("Delete nodes"));
return;