[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/09: grc: remove position offset when pas
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/09: grc: remove position offset when pasting blocks into an empty flow graph |
Date: |
Sun, 21 Feb 2016 15:39:12 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 64cd04bf33816a60f14f1392deb04b90205754c6
Author: Sebastian Koslowski <address@hidden>
Date: Wed Feb 17 19:39:11 2016 +0100
grc: remove position offset when pasting blocks into an empty flow graph
---
grc/gui/FlowGraph.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 867a7cd..04c2f9d 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -184,6 +184,8 @@ class FlowGraph(Element):
v_adj = self.get_scroll_pane().get_vadjustment()
x_off = h_adj.get_value() - x_min + h_adj.page_size/4
y_off = v_adj.get_value() - y_min + v_adj.page_size/4
+ if len(self.get_elements()) <= 1:
+ x_off, y_off = 0, 0
#create blocks
for block_n in blocks_n:
block_key = block_n.find('key')
- [Commit-gnuradio] [gnuradio] branch maint updated (e2c5119 -> 3a2cf6e), git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'tom/qtgui_off_by_1' into maint, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'mbr0wn/uhd/fix_antenna_split' into maint, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 06/09: Fix compilation in gcc-6, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 04/09: uhd: Fix bug #901: Default antenna value causes app to fail, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 03/09: qtgui: fixed a stray +1 that was duplicating tags., git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'mbr0wn/blocks/tagged_stream_align_tags' into maint, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 01/09: grc: remove position offset when pasting blocks into an empty flow graph,
git <=
- [Commit-gnuradio] [gnuradio] 02/09: grc: ignore unknown block keys when pasting blocks, git, 2016/02/21
- [Commit-gnuradio] [gnuradio] 05/09: blocks: Fixed bug #903: tagged_stream_align duplicates tags, git, 2016/02/21