summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-04-10 21:17:33 +0000
committerDavid Robillard <d@drobilla.net>2014-04-10 21:17:33 +0000
commitfb3498abb00ed3cf5c5938fcb1bffef163674274 (patch)
tree57d133af2dd584cc6d0c1a7a5a42f5ba2618df7f /src
parent07bf185d1641f1611667bd52eb1cc4efde1c49e9 (diff)
downloadganv-fb3498abb00ed3cf5c5938fcb1bffef163674274.tar.gz
ganv-fb3498abb00ed3cf5c5938fcb1bffef163674274.tar.bz2
ganv-fb3498abb00ed3cf5c5938fcb1bffef163674274.zip
Fix dragging when modules and ports are both selected.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5365 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Canvas.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 8d0358d..7e4fec3 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -2140,7 +2140,9 @@ ganv_canvas_move_selected_items(GanvCanvas* canvas,
double dy)
{
FOREACH_ITEM(canvas->impl->_selected_items, i) {
- ganv_node_move(*i, dx, dy);
+ if ((*i)->item.parent == canvas->impl->root) {
+ ganv_node_move(*i, dx, dy);
+ }
}
}