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
This commit is contained in:
parent
238abad004
commit
8091573bf7
|
@ -320,8 +320,6 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& 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<wxString>& 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();
|
||||
|
|
Loading…
Reference in New Issue