From: buliabyak Date: Sun, 1 Apr 2007 22:34:28 +0000 (+0000) Subject: fix annoying superfluous separator X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b102ead12653984c7fc33ed9d380b26965124ad3;p=inkscape.git fix annoying superfluous separator --- 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); }