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:
parent
937e3c2d48
commit
2b32070793
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue