From b102ead12653984c7fc33ed9d380b26965124ad3 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 1 Apr 2007 22:34:28 +0000 Subject: [PATCH] fix annoying superfluous separator --- src/interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interface.cpp b/src/interface.cpp index ac8967513..c6b2aaf86 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -936,7 +936,8 @@ sp_ui_context_menu(Inkscape::UI::View::View *view, SPItem *item) } if (( group && group != dt->currentLayer() ) || - ( dt->currentLayer() != dt->currentRoot() ) ) { + ( dt->currentLayer() != dt->currentRoot() && SP_OBJECT_PARENT(dt->currentLayer()) != dt->currentRoot() ) ) { + /* Separator */ sp_ui_menu_append_item(GTK_MENU(m), NULL, NULL, NULL, NULL, NULL, NULL); } -- 2.30.2