[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/04: grc: fix port spacing over canvas gr
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/04: grc: fix port spacing over canvas grid (introduced in 72048e6) |
Date: |
Sat, 28 Nov 2015 21:18:05 +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 0bd8bc3deeb434328d42cd64212a7561e6c68eda
Author: Sebastian Koslowski <address@hidden>
Date: Tue Nov 17 15:55:16 2015 +0100
grc: fix port spacing over canvas grid (introduced in 72048e6)
---
grc/gui/Port.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grc/gui/Port.py b/grc/gui/Port.py
index 4948c77..ae1a1d2 100644
--- a/grc/gui/Port.py
+++ b/grc/gui/Port.py
@@ -81,7 +81,7 @@ class Port(Element):
index = length-index-1
port_separation = PORT_SEPARATION \
- if self.get_parent().has_busses[self.is_source()] \
+ if not self.get_parent().has_busses[self.is_source()] \
else max([port.H for port in ports]) + PORT_SPACING
offset = (self.get_parent().H - (length-1)*port_separation - self.H)/2