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.

(cherry picked from commit 13b96799ea)
This commit is contained in:
Seth Hillbrand 2018-07-30 17:03:58 -07:00
parent 30d398b108
commit fca0785754
1 changed files with 9 additions and 3 deletions

View File

@ -572,9 +572,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();