diff --git a/eeschema/dialogs/panel_template_fieldnames.cpp b/eeschema/dialogs/panel_template_fieldnames.cpp index f9a224791d..23f56011dd 100644 --- a/eeschema/dialogs/panel_template_fieldnames.cpp +++ b/eeschema/dialogs/panel_template_fieldnames.cpp @@ -230,7 +230,7 @@ void PANEL_TEMPLATE_FIELDNAMES::AdjustGridColumns( int aWidth ) // Account for scroll bars aWidth -= ( m_grid->GetSize().x - m_grid->GetClientSize().x ); - m_grid->SetColSize( 0, aWidth - 2 * m_checkboxColWidth ); + m_grid->SetColSize( 0, std::max( 40, aWidth - 2 * m_checkboxColWidth ) ); m_grid->SetColSize( 1, m_checkboxColWidth ); m_grid->SetColSize( 2, m_checkboxColWidth ); }