Fix crash on Specctra import.

Fixes https://gitlab.com/kicad/code/kicad/issues/12583
This commit is contained in:
Alex 2022-10-07 02:15:17 +03:00
parent 22917860ef
commit 2741d0eb4b
1 changed files with 2 additions and 2 deletions

View File

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