Fix issue trying to size stuff before it's displayed.

Fixes https://gitlab.com/kicad/code/kicad/issues/12386
This commit is contained in:
Jeff Young 2022-09-08 23:50:42 +01:00
parent 2743fd583f
commit ca14697ad6
1 changed files with 2 additions and 1 deletions

View File

@ -451,7 +451,8 @@ void PANEL_FP_PROPERTIES_3D_MODEL::AdjustGridColumnWidths()
int width = modelsWidth - m_modelsGrid->GetColSize( COL_SHOWN ) int width = modelsWidth - m_modelsGrid->GetColSize( COL_SHOWN )
- m_modelsGrid->GetColSize( COL_PROBLEM ); - m_modelsGrid->GetColSize( COL_PROBLEM );
m_modelsGrid->SetColSize( COL_FILENAME, width ); if( width > 0 )
m_modelsGrid->SetColSize( COL_FILENAME, width );
} }