Make symbol highlighting from Symbol Fields Table working again.

Fixes #13003
https://gitlab.com/kicad/code/kicad/issues/13003
This commit is contained in:
jean-pierre charras 2022-11-25 16:17:20 +01:00
parent 7e0ba42f0e
commit f2efb9c601
1 changed files with 4 additions and 5 deletions

View File

@ -1311,10 +1311,9 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnTableCellClick( wxGridEvent& event )
{
SCH_EDITOR_CONTROL* editor = m_parent->GetToolManager()->GetTool<SCH_EDITOR_CONTROL>();
wxString path = refs[0].GetPath();
// search and highlight the symbol found by reference
wxString reference = refs[0].GetRef() + refs[0].GetRefNumber();
editor->FindSymbolAndItem( &path, &reference, true, HIGHLIGHT_SYMBOL, wxEmptyString );
editor->FindSymbolAndItem( nullptr, &reference, true, HIGHLIGHT_SYMBOL, wxEmptyString );
}
}
else