From 5f74560a469b43bba57f5c3480b5a9d585f4d873 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 28 Aug 2018 15:12:02 -0700 Subject: [PATCH] gerbview: Add LAYER_SELECT_OVERLAY to GAL Ensure selected gerbview layers plotted on newly created SELECT layer --- gerbview/gerbview_draw_panel_gal.cpp | 3 +++ gerbview/tools/selection_tool.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gerbview/gerbview_draw_panel_gal.cpp b/gerbview/gerbview_draw_panel_gal.cpp index b7399fedea..ac2f59a94c 100644 --- a/gerbview/gerbview_draw_panel_gal.cpp +++ b/gerbview/gerbview_draw_panel_gal.cpp @@ -138,6 +138,9 @@ void GERBVIEW_DRAW_PANEL_GAL::setDefaultLayerDeps() m_view->SetLayerDisplayOnly( LAYER_GERBVIEW_BACKGROUND ); m_view->SetLayerDisplayOnly( LAYER_WORKSHEET ); + m_view->SetLayerTarget( LAYER_SELECT_OVERLAY, KIGFX::TARGET_OVERLAY ); + m_view->SetLayerDisplayOnly( LAYER_SELECT_OVERLAY ); + m_view->SetLayerTarget( LAYER_GP_OVERLAY, KIGFX::TARGET_OVERLAY ); m_view->SetLayerDisplayOnly( LAYER_GP_OVERLAY ); } diff --git a/gerbview/tools/selection_tool.cpp b/gerbview/tools/selection_tool.cpp index f49f8062f8..265e6be91f 100644 --- a/gerbview/tools/selection_tool.cpp +++ b/gerbview/tools/selection_tool.cpp @@ -623,7 +623,7 @@ EDA_ITEM* GERBVIEW_SELECTION_TOOL::disambiguationMenu( GERBER_COLLECTOR* aCollec KIGFX::VIEW_GROUP highlightGroup; CONTEXT_MENU menu; - highlightGroup.SetLayer( LAYER_GP_OVERLAY ); + highlightGroup.SetLayer( LAYER_SELECT_OVERLAY ); getView()->Add( &highlightGroup ); int limit = std::min( 10, aCollector->GetCount() );