Pcbnew, stack-up manager: allows 2 digits in mantissa for EpsilonR

Fixes #3942
https://gitlab.com/kicad/code/kicad/issues/3942
This commit is contained in:
jean-pierre charras 2020-02-26 18:12:24 +01:00
parent 4c563b541e
commit 2d0582daa7
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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<wxTextCtrl*>( 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 );