From 61a95c54401ee91643b2b8cbe16dca01fd218329 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 9 Feb 2019 11:21:09 +0100 Subject: [PATCH] Fix compatibility with wxWidgets 3.1.1 --- pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp index d38d9130cf..99711a2154 100644 --- a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp +++ b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp @@ -4,7 +4,7 @@ * Copyright (C) 2016 Mario Luzeiro * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2015 Dick Hollenbeck, dick@softplc.com - * Copyright (C) 2004-2018 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2004-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 @@ -381,7 +381,7 @@ bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataToWindow() // 'M' is generally the widest character, so we buffer the column width by default to ensure // we don't write a continuous line of text at the column header auto size = m_itemsGrid->GetTextExtent( m_itemsGrid->GetColLabelValue( col ) + "M").x; - m_itemsGrid->SetColSize( col, std::max( m_itemsGrid->GetColumnWidth( col ), size ) ); + m_itemsGrid->SetColSize( col, std::max( m_itemsGrid->GetColSize( col ), size ) ); } int size = m_itemsGrid->GetRowLabelSize(); @@ -630,7 +630,7 @@ bool DIALOG_FOOTPRINT_BOARD_EDITOR::TransferDataFromWindow() size_t i = 2; BOARD_ITEM* next; - + for( BOARD_ITEM* item = m_footprint->GraphicalItemsList().GetFirst(); item; item = next ) { next = item->Next();