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.
This commit is contained in:
jean-pierre charras 2019-04-09 10:36:39 +02:00
parent cf69cb5637
commit 59e6d3bf22
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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<NETLIST_OBJECT_LIST> ret( new NETLIST_OBJECT_LIST() );