Removed post-page-settings ZoomFitToScreen() calls.
Fixes: lp:1834608 * https://bugs.launchpad.net/kicad/+bug/1834608
This commit is contained in:
parent
a11f3a0b80
commit
772dff7a01
|
@ -99,9 +99,7 @@ int SCH_EDITOR_CONTROL::PageSetup( const TOOL_EVENT& aEvent )
|
|||
DIALOG_PAGES_SETTINGS dlg( m_frame, wxSize( MAX_PAGE_SIZE_MILS, MAX_PAGE_SIZE_MILS ) );
|
||||
dlg.SetWksFileName( BASE_SCREEN::m_PageLayoutDescrFileName );
|
||||
|
||||
if( dlg.ShowModal() == wxID_OK )
|
||||
m_toolMgr->RunAction( ACTIONS::zoomFitScreen, true );
|
||||
else
|
||||
if( dlg.ShowModal() != wxID_OK )
|
||||
m_frame->RollbackSchematicFromUndo();
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -97,7 +97,6 @@ int PL_EDITOR_CONTROL::PageSetup( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
else
|
||||
{
|
||||
m_toolMgr->RunAction( ACTIONS::zoomFitScreen, true );
|
||||
m_frame->HardRedraw();
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -309,9 +309,7 @@ int PCB_EDITOR_CONTROL::PageSettings( const TOOL_EVENT& aEvent )
|
|||
MAX_PAGE_SIZE_PCBNEW_MILS ) );
|
||||
dlg.SetWksFileName( BASE_SCREEN::m_PageLayoutDescrFileName );
|
||||
|
||||
if( dlg.ShowModal() == wxID_OK )
|
||||
m_toolMgr->RunAction( ACTIONS::zoomFitScreen, true );
|
||||
else
|
||||
if( dlg.ShowModal() != wxID_OK )
|
||||
m_frame->RollbackFromUndo();
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue