diff --git a/common/lib_tree_model_adapter.cpp b/common/lib_tree_model_adapter.cpp index 1dab3aadb1..0326c1e84b 100644 --- a/common/lib_tree_model_adapter.cpp +++ b/common/lib_tree_model_adapter.cpp @@ -674,10 +674,10 @@ void LIB_TREE_MODEL_ADAPTER::GetValue( wxVariant& aVariant, { const wxString& key = m_colIdxMap.at( aCol ); - if( node->m_Fields.count( key ) ) - valueStr = UnescapeString( node->m_Fields.at( key ) ); - else if( key == wxT( "Description" ) ) + if( key == wxT( "Description" ) ) valueStr = UnescapeString( node->m_Desc ); + else if( node->m_Fields.count( key ) ) + valueStr = UnescapeString( node->m_Fields.at( key ) ); else valueStr = wxEmptyString; } diff --git a/eeschema/symbol_tree_synchronizing_adapter.cpp b/eeschema/symbol_tree_synchronizing_adapter.cpp index bdeb8bd3a2..99d19af2ac 100644 --- a/eeschema/symbol_tree_synchronizing_adapter.cpp +++ b/eeschema/symbol_tree_synchronizing_adapter.cpp @@ -282,10 +282,10 @@ void SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetValue( wxVariant& aVariant, wxDataVie wxString valueStr; - if( node->m_Fields.count( key ) ) - valueStr = node->m_Fields.at( key ); - else if( key == wxT( "Description" ) ) + if( key == wxT( "Description" ) ) valueStr = node->m_Desc; + else if( node->m_Fields.count( key ) ) + valueStr = node->m_Fields.at( key ); else valueStr = wxEmptyString;