From 2af41e87f937ad73fc6eb8bea53c79adaaa083d1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 27 Jul 2019 00:20:25 -0600 Subject: [PATCH] Don't add first found object to selection until Find (or return) is hit. Fixes: lp:1838021 * https://bugs.launchpad.net/kicad/+bug/1838021 --- eeschema/tools/sch_editor_control.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 5de82ad4eb..a81daf98f1 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -148,16 +148,9 @@ int SCH_EDITOR_CONTROL::UpdateFind( const TOOL_EVENT& aEvent ) INSPECTOR_FUNC inspector = [&] ( EDA_ITEM* item, void* ) { if( data && item->Matches( *data, nullptr ) ) - { m_selectionTool->BrightenItem( item ); - - if( m_selectionTool->GetSelection().GetSize() == 0 ) - m_selectionTool->AddItemToSel( item ); - } else if( item->IsBrightened() ) - { m_selectionTool->UnbrightenItem( item ); - } return SEARCH_CONTINUE; };