From 857aca78cdf35082f64b6eaf17b455e87a8f1687 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 22 Apr 2020 12:27:34 +0100 Subject: [PATCH] More std::string vs. wxString compile issues. --- eeschema/dialogs/dialog_fields_editor_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_fields_editor_global.cpp b/eeschema/dialogs/dialog_fields_editor_global.cpp index ad14dd0060..2629e21e07 100644 --- a/eeschema/dialogs/dialog_fields_editor_global.cpp +++ b/eeschema/dialogs/dialog_fields_editor_global.cpp @@ -1099,7 +1099,7 @@ void DIALOG_FIELDS_EDITOR_GLOBAL::OnTableColSize( wxGridSizeEvent& aEvent ) { EESCHEMA_SETTINGS* cfg = static_cast( Kiface().KifaceSettings() ); int col = aEvent.GetRowOrCol(); - wxString key = m_grid->GetColLabelValue( col ); + std::string key = m_grid->GetColLabelValue( col ).ToStdString(); if( m_grid->GetColSize( col ) ) cfg->m_FieldEditorPanel.column_widths[ key.ToStdString() ] = m_grid->GetColSize( col );