From 55c5103f59447b6f37e7433f6fdf3ab74c4abb5a Mon Sep 17 00:00:00 2001 From: bulia byak Date: Sun, 1 Apr 2007 22:34:28 +0000 Subject: fix annoying superfluous separator (bzr r2807) --- src/interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interface.cpp') 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); } -- cgit v1.2.3