Minor fix to ERC dialog

Correctly displays ERC aux item description when tied to specific
sheet context
This commit is contained in:
JamesJCode 2023-01-24 18:00:34 +00:00 committed by jean-pierre charras
parent 43e4797d4d
commit f683df0d1f
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ void ERC_TREE_MODEL::GetValue( wxVariant& aVariant, wxDataViewItem const& aItem,
if( ercItem->AuxItemHasSheetPath() )
ercItem->GetAuxItemSheetPath().UpdateAllScreenReferences();
EDA_ITEM* item = m_editFrame->GetItem( rcItem->GetMainItemID() );
EDA_ITEM* item = m_editFrame->GetItem( rcItem->GetAuxItemID() );
aVariant = item->GetItemDescription( m_editFrame );
// Reset reference fields to current visible sheet