diff --git a/pcbnew/basepcbframe.cpp b/pcbnew/basepcbframe.cpp index ac52b9decc..10c6dce667 100644 --- a/pcbnew/basepcbframe.cpp +++ b/pcbnew/basepcbframe.cpp @@ -976,6 +976,12 @@ void PCB_BASE_FRAME::UseGalCanvas( bool aEnable ) if( m_toolManager ) m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH ); + // Transfer latets current display options from legacy to GAL canvas: + auto painter = static_cast( galCanvas->GetView()->GetPainter() ); + auto settings = painter->GetSettings(); + DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions(); + settings->LoadDisplayOptions( displ_opts ); + galCanvas->GetView()->RecacheAllItems(); galCanvas->SetEventDispatcher( m_toolDispatcher ); galCanvas->StartDrawing(); diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index f797c53893..fc6a4b750d 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -202,7 +202,7 @@ TOOL_ACTION PCB_ACTIONS::zoomTool( "pcbnew.Control.zoomTool", _( "Zoom to Selection" ), "", NULL, AF_ACTIVATE ); TOOL_ACTION PCB_ACTIONS::resetCoords( "pcbnew.Control.resetCoords", - AS_GLOBAL, ' ', + AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_RESET_LOCAL_COORD ), "", "" ); TOOL_ACTION PCB_ACTIONS::switchCursor( "pcbnew.Control.switchCursor",