From 789bb9663ca452d87a0d4dcfd64a9b977216a14d Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 29 Jan 2015 18:23:54 +0100 Subject: [PATCH] bugfix: Find does not work in high contrast mode in GAL. --- pcbnew/tools/selection_tool.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index df5709aae5..85ec289e80 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -516,7 +516,14 @@ void SELECTION_TOOL::findCallback( BOARD_ITEM* aItem ) clearSelection(); if( aItem ) - toggleSelection( aItem ); + { + clearSelection(); + select( aItem ); + + // Inform other potentially interested tools + TOOL_EVENT selectEvent( SelectedEvent ); + m_toolMgr->ProcessEvent( selectEvent ); + } m_frame->GetGalCanvas()->ForceRefresh(); }