Browse Source

Fix column minimal sizes in panel_setup_text_and_graphics.cpp on Windows.

pull/13/head
jean-pierre charras 7 years ago
parent
commit
756b20ace8
  1. 2
      pcbnew/dialogs/panel_setup_mask_and_paste.cpp
  2. 2
      pcbnew/dialogs/panel_setup_text_and_graphics.cpp

2
pcbnew/dialogs/panel_setup_mask_and_paste.cpp

@ -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

2
pcbnew/dialogs/panel_setup_text_and_graphics.cpp

@ -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…
Cancel
Save