Don't zoom-to-fit after Page Layout Editor undo/redo.

Fixes: lp:1838673
* https://bugs.launchpad.net/kicad/+bug/1838673
This commit is contained in:
Jeff Young 2019-08-01 20:29:32 -06:00
parent 937e3c2d48
commit 2b32070793
1 changed files with 0 additions and 8 deletions

View File

@ -75,14 +75,9 @@ void PL_EDITOR_FRAME::GetLayoutFromRedoList()
delete redoItem;
if( pageSettingsAndTitleBlock )
{
GetToolManager()->RunAction( ACTIONS::zoomFitScreen, true );
HardRedraw(); // items based off of corners will need re-calculating
}
else
{
GetCanvas()->Refresh();
}
OnModify();
}
@ -115,10 +110,7 @@ void PL_EDITOR_FRAME::GetLayoutFromUndoList()
delete undoItem;
if( pageSettingsAndTitleBlock )
{
GetToolManager()->RunAction( ACTIONS::zoomFitScreen, true );
HardRedraw(); // items based off of corners will need re-calculating
}
else
GetCanvas()->Refresh();