Fix crash on Specctra import.
Fixes https://gitlab.com/kicad/code/kicad/issues/12583
(cherry picked from commit 2741d0eb4b
)
This commit is contained in:
parent
95acc1bf33
commit
238c8df8b5
|
@ -83,11 +83,11 @@ bool PCB_EDIT_FRAME::ImportSpecctraSession( const wxString& fullFileName )
|
|||
return false;
|
||||
}
|
||||
|
||||
OnModify();
|
||||
|
||||
GetBoard()->GetConnectivity()->Clear();
|
||||
GetBoard()->GetConnectivity()->Build( GetBoard() );
|
||||
|
||||
OnModify();
|
||||
|
||||
if( GetCanvas() ) // Update view:
|
||||
{
|
||||
// Update footprint positions
|
||||
|
|
Loading…
Reference in New Issue