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:
parent
cf69cb5637
commit
59e6d3bf22
|
@ -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;
|
||||
|
|
|
@ -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() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue