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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user