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,6 +222,9 @@ void SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataVie
break; break;
case 1: case 1:
if( node->LibId == m_libMgr->GetCurrentLibId() )
aVariant = m_libMgr->GetAlias( node->Name, node->Parent->Name )->GetDescription();
else
aVariant = node->Desc; aVariant = node->Desc;
break; break;