mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Set current screen's sheet number before rendering.
Any first-page-only items in the drawing sheet will need the number to be correct. Fixes https://gitlab.com/kicad/code/kicad/-/issues/18317
This commit is contained in:
parent
a484ac0249
commit
6b22f86a54
@ -2372,6 +2372,8 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
|
||||
|
||||
SCH_BASE_FRAME::SetScreen( screen );
|
||||
|
||||
SetSheetNumberAndCount(); // will also update CurrentScreen()'s sheet number info
|
||||
|
||||
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
|
||||
|
||||
// update the references, units, and intersheet-refs
|
||||
@ -2380,7 +2382,6 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
|
||||
// dangling state can also have changed if different units with different pin locations are
|
||||
// used
|
||||
GetCurrentSheet().LastScreen()->TestDanglingEnds();
|
||||
SetSheetNumberAndCount();
|
||||
RefreshOperatingPointDisplay();
|
||||
|
||||
EE_SELECTION_TOOL* selectionTool = m_toolManager->GetTool<EE_SELECTION_TOOL>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user