From 238c8df8b5706cfda55a9e6ec711e1a52868d882 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Oct 2022 02:15:17 +0300 Subject: [PATCH] Fix crash on Specctra import. Fixes https://gitlab.com/kicad/code/kicad/issues/12583 (cherry picked from commit 2741d0eb4bb5603e849d81e642d18ff7b05b9442) --- pcbnew/specctra_import_export/specctra_import.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/specctra_import_export/specctra_import.cpp b/pcbnew/specctra_import_export/specctra_import.cpp index 9612ed8845..d6d40b45f5 100644 --- a/pcbnew/specctra_import_export/specctra_import.cpp +++ b/pcbnew/specctra_import_export/specctra_import.cpp @@ -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