diff options
author | Glenn Richardson <glenn.richardson@live.com> | 2015-11-19 20:34:55 -0500 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-11-24 17:03:24 +0100 |
commit | dcc09deb064453f4add1ece3502ee99f12f3cb25 (patch) | |
tree | 352305829f7fe57ea16c66e5b0254636e787890b /grc/gui/FlowGraph.py | |
parent | ba57cd0c5e7352c81e5025760d7aaecde92d083b (diff) |
grc: preserve block spacing when dragging multiple blocks into canvas boundary
Diffstat (limited to 'grc/gui/FlowGraph.py')
-rw-r--r-- | grc/gui/FlowGraph.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py index 6d712e520a..867a7cd2e8 100644 --- a/grc/gui/FlowGraph.py +++ b/grc/gui/FlowGraph.py @@ -280,6 +280,9 @@ class FlowGraph(Element): delta_coordinate: the change in coordinates """ for selected_block in self.get_selected_blocks(): + delta_coordinate = selected_block.bound_move_delta(delta_coordinate) + + for selected_block in self.get_selected_blocks(): selected_block.move(delta_coordinate) self.element_moved = True |