Browse Source

Remove extra call to SetTopLayer() when switching active layer

pull/5/merge
Jon Evans 8 years ago
committed by Wayne Stambaugh
parent
commit
319b7cfc67
  1. 2
      gerbview/gerbview_frame.cpp

2
gerbview/gerbview_frame.cpp

@ -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…
Cancel
Save