Make symbol highlighting from Symbol Fields Table working again.
Fixes #13003 https://gitlab.com/kicad/code/kicad/issues/13003
This commit is contained in:
parent
7e0ba42f0e
commit
f2efb9c601
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue