7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 18:11:42 +00:00

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

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();