summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
+ }
}
}