diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-04-01 22:34:28 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-04-01 22:34:28 +0000 |
| commit | 55c5103f59447b6f37e7433f6fdf3ab74c4abb5a (patch) | |
| tree | c7364eb2aecbc9a02d62141d7138b0647c8fed40 /src/interface.cpp | |
| parent | removed leftover debug messages. Toggling new grids now works. Almost ready t... (diff) | |
| download | inkscape-55c5103f59447b6f37e7433f6fdf3ab74c4abb5a.tar.gz inkscape-55c5103f59447b6f37e7433f6fdf3ab74c4abb5a.zip | |
fix annoying superfluous separator
(bzr r2807)
Diffstat (limited to 'src/interface.cpp')
| -rw-r--r-- | src/interface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |
