Remove extra call to SetTopLayer() when switching active layer
This commit is contained in:
parent
e21f18a176
commit
319b7cfc67
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue