Code

fix annoying superfluous separator
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 1 Apr 2007 22:34:28 +0000 (22:34 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 1 Apr 2007 22:34:28 +0000 (22:34 +0000)
src/interface.cpp

index ac896751311bc13450f2301ffa807f428e8cdfc0..c6b2aaf8601fac20fb8794edd704a954847b1116 100644 (file)
@@ -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);
     }