From f9566661365eef262a040e64294a9646592f2b88 Mon Sep 17 00:00:00 2001 From: Ole Engelbrecht Date: Tue, 16 Jul 2024 14:09:04 +0200 Subject: [PATCH] small fix in parent module assignment --- plugins/netlist_modifier/src/netlist_modifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/netlist_modifier/src/netlist_modifier.cpp b/plugins/netlist_modifier/src/netlist_modifier.cpp index c6f9e595af4..2cae798107a 100644 --- a/plugins/netlist_modifier/src/netlist_modifier.cpp +++ b/plugins/netlist_modifier/src/netlist_modifier.cpp @@ -147,7 +147,8 @@ namespace hal new_gate->set_location(position); } - module->assign_gate(new_gate); + if (module != new_gate->get_module()) + module->assign_gate(new_gate); return true; }