Make sure the current desc is shown for parts being edited.

Fixes: lp:1820298
* https://bugs.launchpad.net/kicad/+bug/1820298

(cherry picked from commit 7c337ec45d)
This commit is contained in:
Jeff Young 2019-06-04 11:14:59 +01:00
parent 006d7ddd31
commit cd6da987cc
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ void SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataVie
break;
case 1:
aVariant = node->Desc;
if( node->LibId == m_libMgr->GetCurrentLibId() )
aVariant = m_libMgr->GetAlias( node->Name, node->Parent->Name )->GetDescription();
else
aVariant = node->Desc;
break;
default: // column == -1 is used for default Compare function