diff --git a/src/node-context.cpp b/src/node-context.cpp
index 988de9d12456eee85e53a72c0f642aa854e0b793..67511ea30e83c3e0a4f4445e3c9da1fdc5084608 100644 (file)
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
if (MOD__CTRL_ONLY) {
sp_node_selected_delete();
} else {
- sp_node_delete_preserve(g_list_copy(nc->nodepath->selected));
+ if (nc->nodepath && nc->nodepath->selected) {
+ sp_node_delete_preserve(g_list_copy(nc->nodepath->selected));
+ }
}
ret = TRUE;
break;