From 2d0582daa7791375fbd0a75401f588436ac6c070 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 26 Feb 2020 18:12:24 +0100 Subject: [PATCH] Pcbnew, stack-up manager: allows 2 digits in mantissa for EpsilonR Fixes #3942 https://gitlab.com/kicad/code/kicad/issues/3942 --- pcbnew/board_stackup_manager/class_board_stackup.cpp | 2 +- pcbnew/board_stackup_manager/panel_board_stackup.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/board_stackup_manager/class_board_stackup.cpp b/pcbnew/board_stackup_manager/class_board_stackup.cpp index 4b56afe1f2..bf3f311a6b 100644 --- a/pcbnew/board_stackup_manager/class_board_stackup.cpp +++ b/pcbnew/board_stackup_manager/class_board_stackup.cpp @@ -282,7 +282,7 @@ wxString BOARD_STACKUP_ITEM::FormatEpsilonR( int aDielectricSubLayer ) const { // return a wxString to print/display Epsilon R wxString txt; - txt.Printf( "%.1f", GetEpsilonR( aDielectricSubLayer ) ); + txt.Printf( "%.2f", GetEpsilonR( aDielectricSubLayer ) ); return txt; } diff --git a/pcbnew/board_stackup_manager/panel_board_stackup.cpp b/pcbnew/board_stackup_manager/panel_board_stackup.cpp index c688cbe172..859d3f32a5 100644 --- a/pcbnew/board_stackup_manager/panel_board_stackup.cpp +++ b/pcbnew/board_stackup_manager/panel_board_stackup.cpp @@ -442,7 +442,7 @@ void PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard( bool aFullSync ) if( item->HasEpsilonRValue() ) { wxString txt; - txt.Printf( "%.1f", item->GetEpsilonR( sub_item ) ); + txt.Printf( "%.2f", item->GetEpsilonR( sub_item ) ); wxTextCtrl* textCtrl = dynamic_cast( ui_row_item.m_EpsilonCtrl ); if( textCtrl ) @@ -697,7 +697,7 @@ BOARD_STACKUP_ROW_UI_ITEM PANEL_SETUP_BOARD_STACKUP::createRowData( int aRow, if( item->HasEpsilonRValue() ) { wxString txt; - txt.Printf( "%.1f", item->GetEpsilonR( aSublayerIdx ) ); + txt.Printf( "%.2f", item->GetEpsilonR( aSublayerIdx ) ); wxTextCtrl* textCtrl = new wxTextCtrl( m_scGridWin, wxID_ANY, wxEmptyString, wxDefaultPosition, m_numericFieldsSize ); textCtrl->SetValue( txt );