From 2b3207079385946e7efd5bc2ef3896a2a15ef0e5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 1 Aug 2019 20:29:32 -0600 Subject: [PATCH] Don't zoom-to-fit after Page Layout Editor undo/redo. Fixes: lp:1838673 * https://bugs.launchpad.net/kicad/+bug/1838673 --- pagelayout_editor/pl_editor_undo_redo.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pagelayout_editor/pl_editor_undo_redo.cpp b/pagelayout_editor/pl_editor_undo_redo.cpp index c133222397..70c719a3d8 100644 --- a/pagelayout_editor/pl_editor_undo_redo.cpp +++ b/pagelayout_editor/pl_editor_undo_redo.cpp @@ -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();