From 59e6d3bf2297d4c12e35db991fff7c9c3f724a96 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 9 Apr 2019 10:36:39 +0200 Subject: [PATCH] Ensure netlist is always up to date when creating a netlist. A previous commit updated the netlist only on cross probing, that not covered all cases. --- eeschema/cross-probing.cpp | 3 --- eeschema/netlist_generator.cpp | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index 21daa41c29..e6410b7a62 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -279,9 +279,6 @@ void SCH_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail ) } { - // Ensure netlist is up to date - RecalculateConnections(); - NETLIST_OBJECT_LIST* net_atoms = BuildNetListBase(); NETLIST_EXPORTER_KICAD exporter( this, net_atoms, g_ConnectionGraph ); STRING_FORMATTER formatter; diff --git a/eeschema/netlist_generator.cpp b/eeschema/netlist_generator.cpp index 4694aa395a..6f5979b3e0 100644 --- a/eeschema/netlist_generator.cpp +++ b/eeschema/netlist_generator.cpp @@ -234,6 +234,9 @@ NETLIST_OBJECT_LIST* SCH_EDIT_FRAME::CreateNetlist( bool aSilent, NETLIST_OBJECT_LIST* SCH_EDIT_FRAME::BuildNetListBase( bool updateStatusText ) { + // Ensure netlist is up to date + RecalculateConnections(); + // I own this list until I return it to the new owner. std::unique_ptr ret( new NETLIST_OBJECT_LIST() );