Remove extra call to SetTopLayer() when switching active layer

This commit is contained in:
Jon Evans 2018-02-25 16:08:18 -05:00 committed by Wayne Stambaugh
parent e21f18a176
commit 319b7cfc67
1 changed files with 0 additions and 2 deletions

View File

@ -886,8 +886,6 @@ void GERBVIEW_FRAME::SetActiveLayer( int aLayer, bool doLayerWidgetUpdate )
m_toolManager->RunAction( GERBVIEW_ACTIONS::layerChanged ); // notify other tools
GetGalCanvas()->SetFocus(); // otherwise hotkeys are stuck somewhere
// NOTE(JE) The next two calls are slow (scales with number of items)
GetGalCanvas()->SetTopLayer( GERBER_DRAW_LAYER( aLayer ) );
GetGalCanvas()->SetHighContrastLayer( GERBER_DRAW_LAYER( aLayer ) );
GetGalCanvas()->Refresh();