Use cached untranslated header for looking up width

This commit is contained in:
Jon Evans 2022-09-06 09:18:34 -04:00
parent b80824951e
commit 1520a1d372
1 changed files with 3 additions and 1 deletions

View File

@ -397,8 +397,10 @@ void LIB_TREE_MODEL_ADAPTER::FinishTreeInitialization()
for( ; idx < m_columns.size() - 1; idx++ )
{
wxASSERT( m_colIdxMap.count( idx ) );
col = m_columns[idx];
header = col->GetTitle();
header = m_colIdxMap[idx];
wxASSERT( m_colWidths.count( header ) );