From 2c04d76ff42423dff19d6b78852b502edd177203 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Thu, 4 Feb 2021 17:46:07 +0000 Subject: [PATCH] Non-Kicad Schematic Importers: Do not reload all symbols after import This is required to allow handling of pin swaps in the CADSTAR importer --- eeschema/files-io.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 379a69c0cd..4beda24d58 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -954,28 +954,6 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType ) SaveProjectSettings(); UpdateFileHistory( aFileName ); - SCH_SCREENS schematic( Schematic().Root() ); - schematic.UpdateSymbolLinks(); // Update all symbol library links for all sheets. - - for( SCH_SCREEN* screen = schematic.GetFirst(); screen; screen = schematic.GetNext() ) - { - for( auto item : screen->Items().OfType( SCH_COMPONENT_T ) ) - { - std::vector pts; - SCH_COMPONENT* cmp = static_cast( item ); - - // Update footprint LIB_ID to point to the imported Eagle library - SCH_FIELD* fpField = cmp->GetField( FOOTPRINT_FIELD ); - - if( !fpField->GetText().IsEmpty() ) - { - LIB_ID fpId; - fpId.Parse( fpField->GetText(), true ); - fpId.SetLibNickname( newfilename.GetName() ); - fpField->SetText( fpId.Format() ); - } - } - } // Only perform the dangling end test on root sheet. GetScreen()->TestDanglingEnds();