Browse Source

pcbnew: remove duplicate rebuild in GAL

When running GAL, the connectivity is built when the board loads, so the
extra call to rebuild connectivity is not needed.
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
13b96799ea
  1. 12
      pcbnew/files.cpp

12
pcbnew/files.cpp

@ -588,9 +588,15 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
// Select netclass Default as current netclass (it always exists)
SetCurrentNetClass( NETCLASS::Default );
// Rebuild list of nets (full ratsnest rebuild)
Compile_Ratsnest( NULL, true );
GetBoard()->BuildConnectivity();
// When GAL is active, the connectivity is rebuilt when the board is loaded
// For legacy, we keep these calls to ensure ratsnest
// todo: Remove legacy code
if( !IsGalCanvasActive() )
{
// Rebuild list of nets (full ratsnest rebuild)
Compile_Ratsnest( NULL, true );
GetBoard()->BuildConnectivity();
}
onBoardLoaded();

Loading…
Cancel
Save