Clear comp highlighting before highlight new one.
On clicking a reference cell in the field editor of Eeschema a corresponding component is highlighted in Eeschema. But previously highlighted components are staying highlighted. With current patch all highlightings are cleared before highlighting selected component.
This commit is contained in:
parent
75f18cfe62
commit
4ea08d477d
|
@ -979,6 +979,7 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::OnTableCellClick( wxGridEvent& event )
|
|||
{
|
||||
// Clear highligted symbols, if any
|
||||
m_parent->GetCanvas()->GetView()->HighlightItem( nullptr, nullptr );
|
||||
m_parent->GetCanvas()->Refresh();
|
||||
|
||||
m_dataModel->ExpandCollapseRow( event.GetRow() );
|
||||
std::vector<SCH_REFERENCE> refs = m_dataModel->GetRowReferences( event.GetRow() );
|
||||
|
|
Loading…
Reference in New Issue