From fb3498abb00ed3cf5c5938fcb1bffef163674274 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 Apr 2014 21:17:33 +0000 Subject: 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 --- src/Canvas.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- cgit v1.2.1