From a48d06c40de9a298bb8551e81948542b8ab92827 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 25 Nov 2022 17:29:03 +0100 Subject: [PATCH] Better fix than commit f2efb9c6 for issue #13003. --- eeschema/dialogs/dialog_symbol_fields_table.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_symbol_fields_table.cpp b/eeschema/dialogs/dialog_symbol_fields_table.cpp index 5b4e06b045..5fa1ed1e46 100644 --- a/eeschema/dialogs/dialog_symbol_fields_table.cpp +++ b/eeschema/dialogs/dialog_symbol_fields_table.cpp @@ -28,7 +28,6 @@ #include #include #include -//#include "eda_list_dialog.h" #include #include #include @@ -1311,9 +1310,11 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnTableCellClick( wxGridEvent& event ) { SCH_EDITOR_CONTROL* editor = m_parent->GetToolManager()->GetTool(); - // search and highlight the symbol found by reference - wxString reference = refs[0].GetRef() + refs[0].GetRefNumber(); - editor->FindSymbolAndItem( nullptr, &reference, true, HIGHLIGHT_SYMBOL, wxEmptyString ); + // search and highlight the symbol found by its full path. + // It allows select of not yet annotated or duplicaded symbols + wxString symbol_path = refs[0].GetFullPath(); + // wxString reference = refs[0].GetRef() + refs[0].GetRefNumber(); // Not used + editor->FindSymbolAndItem( &symbol_path, nullptr, true, HIGHLIGHT_SYMBOL, wxEmptyString ); } } else