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.
This commit is contained in:
Seth Hillbrand 2018-07-30 17:03:58 -07:00
parent 284c39acac
commit 13b96799ea
1 changed files with 9 additions and 3 deletions

View File

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