From 8091573bf750b9406858815bb84d953c8c26d347 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 6 Nov 2018 11:24:23 +0100 Subject: [PATCH] Fix disappearing schematic components SCH_COMPONENTs should be added to VIEW only when symbol links are resolved. Otherwise a dummy component bounding box will be used when inserting a component to VIEW R-tree. Fixes: lp:1801800 * https://bugs.launchpad.net/kicad/+bug/1801800 --- eeschema/files-io.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 90ea9908f0..38aba3a7f4 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -320,8 +320,6 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in return false; } - SetScreen( m_CurrentSheet->LastScreen() ); - // It's possible the schematic parser fixed errors due to bugs so warn the user // that the schematic has been fixed (modified). SCH_SHEET_LIST sheetList( g_RootSheet ); @@ -359,6 +357,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in } schematic.UpdateSymbolLinks(); // Update all symbol library links for all sheets. + SetScreen( m_CurrentSheet->LastScreen() ); // Ensure the schematic is fully segmented on first display BreakSegmentsOnJunctions();