Fix column minimal sizes in panel_setup_text_and_graphics.cpp on Windows.
This commit is contained in:
parent
61a95c5440
commit
756b20ace8
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||
*
|
||||
* Copyright (C) 2018 KiCad Developers, see change_log.txt for contributors.
|
||||
* Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
|
|
|
@ -75,7 +75,7 @@ PANEL_SETUP_TEXT_AND_GRAPHICS::PANEL_SETUP_TEXT_AND_GRAPHICS( PAGED_DIALOG* aPar
|
|||
for( int row = 0; row < m_grid->GetNumberRows(); row++ )
|
||||
size = std::max( size, m_grid->GetTextExtent( m_grid->GetCellValue( row, col ) ).x );
|
||||
|
||||
m_grid->SetColSize( col, size);
|
||||
m_grid->SetColMinimalWidth( col, size);
|
||||
}
|
||||
|
||||
int size = m_grid->GetRowLabelSize();
|
||||
|
|
Loading…
Reference in New Issue