Don't reset page unless we have to.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15033
(cherry picked from commit f892194be4
)
This commit is contained in:
parent
b857374aa2
commit
0652267d00
|
@ -301,8 +301,13 @@ void SCH_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList )
|
||||||
}
|
}
|
||||||
else if( status == UNDO_REDO::PAGESETTINGS )
|
else if( status == UNDO_REDO::PAGESETTINGS )
|
||||||
{
|
{
|
||||||
SetCurrentSheet( *m_schematic->GetSheets().FindSheetForScreen( screen ) );
|
SCH_SHEET_PATH& undoSheet = *m_schematic->GetSheets().FindSheetForScreen( screen );
|
||||||
DisplayCurrentSheet();
|
|
||||||
|
if( GetCurrentSheet() != undoSheet )
|
||||||
|
{
|
||||||
|
SetCurrentSheet( undoSheet );
|
||||||
|
DisplayCurrentSheet();
|
||||||
|
}
|
||||||
|
|
||||||
// swap current settings with stored settings
|
// swap current settings with stored settings
|
||||||
DS_PROXY_UNDO_ITEM alt_item( this );
|
DS_PROXY_UNDO_ITEM alt_item( this );
|
||||||
|
|
Loading…
Reference in New Issue