Fix crash on Specctra import.

Fixes https://gitlab.com/kicad/code/kicad/issues/12583


(cherry picked from commit 2741d0eb4b)
This commit is contained in:
Alex 2022-10-07 02:15:17 +03:00 committed by dsa-t
parent 95acc1bf33
commit 238c8df8b5
1 changed files with 2 additions and 2 deletions

View File

@ -83,11 +83,11 @@ bool PCB_EDIT_FRAME::ImportSpecctraSession( const wxString& fullFileName )
return false; return false;
} }
OnModify();
GetBoard()->GetConnectivity()->Clear(); GetBoard()->GetConnectivity()->Clear();
GetBoard()->GetConnectivity()->Build( GetBoard() ); GetBoard()->GetConnectivity()->Build( GetBoard() );
OnModify();
if( GetCanvas() ) // Update view: if( GetCanvas() ) // Update view:
{ {
// Update footprint positions // Update footprint positions