Fix crash on schematic sheet file rename.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/18965
This commit is contained in:
@@ -282,6 +282,7 @@ bool SCH_EDIT_FRAME::LoadSheetFromFile( SCH_SHEET* aSheet, SCH_SHEET_PATH* aCurr
|
||||
}
|
||||
|
||||
SCH_SHEET_LIST loadedSheets( tmpSheet.get() );
|
||||
Schematic().RefreshHierarchy();
|
||||
SCH_SHEET_LIST schematicSheets = Schematic().Hierarchy();
|
||||
|
||||
// Make sure any new sheet changes do not cause any recursion issues.
|
||||
|
||||
Reference in New Issue
Block a user