diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2014-11-06 18:02:10 +0100 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2014-11-06 18:02:10 +0100 |
commit | 8a8bfef084ed7a6ddc506f81690041d3b15a9540 (patch) | |
tree | 68fb500fa5950d1a6db2e4bee7d0bb576459f8b5 /grc/python/Port.py | |
parent | be9b7a1644fc55ecd0a18085affb64307db53534 (diff) |
grc: fix port type cache for empty types
Diffstat (limited to 'grc/python/Port.py')
-rw-r--r-- | grc/python/Port.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/python/Port.py b/grc/python/Port.py index 68e851f8c9..cfeabf8560 100644 --- a/grc/python/Port.py +++ b/grc/python/Port.py @@ -133,8 +133,8 @@ class Port(_Port, _GUIPort): """ Handle the port cloning for virtual blocks. """ - _Port.rewrite(self) if self.is_type_empty(): + self._type_evaluated = None try: #clone type and vlen source = self.resolve_empty_type() self._type = str(source.get_type()) @@ -142,6 +142,7 @@ class Port(_Port, _GUIPort): except: #reset type and vlen self._type = '' self._vlen = '' + _Port.rewrite(self) def resolve_virtual_source(self): if self.get_parent().is_virtual_sink(): return _get_source_from_virtual_sink_port(self) |