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;
|
delete redoItem;
|
||||||
|
|
||||||
if( pageSettingsAndTitleBlock )
|
if( pageSettingsAndTitleBlock )
|
||||||
{
|
|
||||||
GetToolManager()->RunAction( ACTIONS::zoomFitScreen, true );
|
|
||||||
HardRedraw(); // items based off of corners will need re-calculating
|
HardRedraw(); // items based off of corners will need re-calculating
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
GetCanvas()->Refresh();
|
GetCanvas()->Refresh();
|
||||||
}
|
|
||||||
|
|
||||||
OnModify();
|
OnModify();
|
||||||
}
|
}
|
||||||
|
@ -115,10 +110,7 @@ void PL_EDITOR_FRAME::GetLayoutFromUndoList()
|
||||||
delete undoItem;
|
delete undoItem;
|
||||||
|
|
||||||
if( pageSettingsAndTitleBlock )
|
if( pageSettingsAndTitleBlock )
|
||||||
{
|
|
||||||
GetToolManager()->RunAction( ACTIONS::zoomFitScreen, true );
|
|
||||||
HardRedraw(); // items based off of corners will need re-calculating
|
HardRedraw(); // items based off of corners will need re-calculating
|
||||||
}
|
|
||||||
else
|
else
|
||||||
GetCanvas()->Refresh();
|
GetCanvas()->Refresh();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue