Eeschema: minor fix: ensure, after loading a schematic the sheet count is updated.

Fixes #16260
https://gitlab.com/kicad/code/kicad/-/issues/16260
This commit is contained in:
jean-pierre charras 2023-12-05 09:58:25 +01:00
parent fcc6dec0e4
commit e5b27dbe32
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
#ifdef PROFILE
openFiles.Show();
#endif
// Ensure all items are redrawn (especially the drawing-sheet items):
if( GetCanvas() )
GetCanvas()->DisplaySheet( GetCurrentSheet().LastScreen() );
return true;
}