From 319b7cfc677313f3055f30cd47e97a63a7e68682 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 25 Feb 2018 16:08:18 -0500 Subject: [PATCH] Remove extra call to SetTopLayer() when switching active layer --- gerbview/gerbview_frame.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index 72252108a1..99bc247879 100644 --- a/gerbview/gerbview_frame.cpp +++ b/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();