From 756b20ace868ed31d31879a8d74e16c13cc365b7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 9 Feb 2019 13:42:30 +0100 Subject: [PATCH] Fix column minimal sizes in panel_setup_text_and_graphics.cpp on Windows. --- pcbnew/dialogs/panel_setup_mask_and_paste.cpp | 2 +- pcbnew/dialogs/panel_setup_text_and_graphics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/panel_setup_mask_and_paste.cpp b/pcbnew/dialogs/panel_setup_mask_and_paste.cpp index 25dcf173e6..e8268b5ccf 100644 --- a/pcbnew/dialogs/panel_setup_mask_and_paste.cpp +++ b/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 diff --git a/pcbnew/dialogs/panel_setup_text_and_graphics.cpp b/pcbnew/dialogs/panel_setup_text_and_graphics.cpp index b5b4416450..f0adcbd45d 100644 --- a/pcbnew/dialogs/panel_setup_text_and_graphics.cpp +++ b/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();