From f9ea7509df468b2411750f328229c33acd0a6b6b Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Thu, 6 Aug 2020 15:05:25 +0200 Subject: [PATCH] Bug fix, correctly transmit the editor when processing sub-block. --- cumulus/src/plugins/alpha/block/block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cumulus/src/plugins/alpha/block/block.py b/cumulus/src/plugins/alpha/block/block.py index 4575cdca..4f1d479f 100644 --- a/cumulus/src/plugins/alpha/block/block.py +++ b/cumulus/src/plugins/alpha/block/block.py @@ -487,14 +487,14 @@ class Block ( object ): so they will appear as ``NetListTerminal`` and we can place them in their parent cell. """ + editor = self.state.editor print( ' o Builing block "{}".'.format(self.state.cell.getName()) ) for blockInstance in self.blockInstances: - blockInstance.block.editor = self.state.editor + blockInstance.block.state.editor = editor if not blockInstance.block.state.isBuilt: print( ' - Build sub-block "{}".' \ .format(blockInstance.block.state.cell.getName()) ) blockInstance.block.build() - editor = self.state.editor if editor: editor.setCell( self.state.cell ) self.state.cfg.apply() self.setupAb()