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:
parent
4c563b541e
commit
2d0582daa7
|
@ -282,7 +282,7 @@ wxString BOARD_STACKUP_ITEM::FormatEpsilonR( int aDielectricSubLayer ) const
|
||||||
{
|
{
|
||||||
// return a wxString to print/display Epsilon R
|
// return a wxString to print/display Epsilon R
|
||||||
wxString txt;
|
wxString txt;
|
||||||
txt.Printf( "%.1f", GetEpsilonR( aDielectricSubLayer ) );
|
txt.Printf( "%.2f", GetEpsilonR( aDielectricSubLayer ) );
|
||||||
return txt;
|
return txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -442,7 +442,7 @@ void PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard( bool aFullSync )
|
||||||
if( item->HasEpsilonRValue() )
|
if( item->HasEpsilonRValue() )
|
||||||
{
|
{
|
||||||
wxString txt;
|
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 );
|
wxTextCtrl* textCtrl = dynamic_cast<wxTextCtrl*>( ui_row_item.m_EpsilonCtrl );
|
||||||
|
|
||||||
if( textCtrl )
|
if( textCtrl )
|
||||||
|
@ -697,7 +697,7 @@ BOARD_STACKUP_ROW_UI_ITEM PANEL_SETUP_BOARD_STACKUP::createRowData( int aRow,
|
||||||
if( item->HasEpsilonRValue() )
|
if( item->HasEpsilonRValue() )
|
||||||
{
|
{
|
||||||
wxString txt;
|
wxString txt;
|
||||||
txt.Printf( "%.1f", item->GetEpsilonR( aSublayerIdx ) );
|
txt.Printf( "%.2f", item->GetEpsilonR( aSublayerIdx ) );
|
||||||
wxTextCtrl* textCtrl = new wxTextCtrl( m_scGridWin, wxID_ANY, wxEmptyString,
|
wxTextCtrl* textCtrl = new wxTextCtrl( m_scGridWin, wxID_ANY, wxEmptyString,
|
||||||
wxDefaultPosition, m_numericFieldsSize );
|
wxDefaultPosition, m_numericFieldsSize );
|
||||||
textCtrl->SetValue( txt );
|
textCtrl->SetValue( txt );
|
||||||
|
|
Loading…
Reference in New Issue