diff options
author | Solomon Tan <solomonbstoner@yahoo.com.au> | 2021-05-19 22:28:34 +0800 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-05-24 08:02:04 -0400 |
commit | 6f5803963c56d454564ba2ee2e5f2607689b3c43 (patch) | |
tree | 96c97165a204de8f3feedc6bae23aeda5467e65c /grc | |
parent | digital: Gut packet_utils.py (diff) | |
download | gnuradio-6f5803963c56d454564ba2ee2e5f2607689b3c43.tar.xz gnuradio-6f5803963c56d454564ba2ee2e5f2607689b3c43.zip |
grc: Fix vector length bug
Make all ports follow the `vlen` of their master port the same way it is
for `dtype`. Fixes #4634.
Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
Diffstat (limited to 'grc')
-rw-r--r-- | grc/core/blocks/block.py | 1 | ||||
-rw-r--r-- | grc/gui/Application.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/grc/core/blocks/block.py b/grc/core/blocks/block.py index 418c8b1c1..2f5d9fc5b 100644 --- a/grc/core/blocks/block.py +++ b/grc/core/blocks/block.py @@ -213,6 +213,7 @@ class Block(Element): for port in ports: if hasattr(port, 'master_port'): # Not a master port and no left-over clones port.dtype = port.master_port.dtype + port.vlen = port.master_port.vlen continue nports = port.multiplicity for clone in port.clones[nports-1:]: diff --git a/grc/gui/Application.py b/grc/gui/Application.py index 6b3fb804e..a5ea248bc 100644 --- a/grc/gui/Application.py +++ b/grc/gui/Application.py @@ -554,7 +554,7 @@ class Application(Gtk.Application): response = self.dialog.run() if response in (Gtk.ResponseType.APPLY, Gtk.ResponseType.ACCEPT): page.state_cache.save_new_state(flow_graph.export_data()) - ### Following line forces a complete update of io ports + ### Following line forces a complete update of io ports flow_graph_update() page.saved = False else: # restore the current state |