Schematic: set current sheet after initializing screens

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13238
This commit is contained in:
Mike Williams 2023-01-03 12:10:38 -05:00
parent 7d1f25fbf1
commit d1c2ab957b
1 changed files with 1 additions and 0 deletions

View File

@ -146,6 +146,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// NB: also links the schematic to the loaded project
CreateScreens();
SetCurrentSheet( Schematic().GetSheets()[0] );
setupTools();
setupUIConditions();