Revert "Remove trailing zeros from all values"
This reverts commit abd0388794
.
This commit is contained in:
parent
b1180d9377
commit
fc93c63a19
|
@ -464,13 +464,6 @@ wxString EDA_UNIT_UTILS::UI::MessageTextFromValue( const EDA_IU_SCALE& aIuScale,
|
||||||
}
|
}
|
||||||
|
|
||||||
text.Printf( format, value );
|
text.Printf( format, value );
|
||||||
removeTrailingZeros( text );
|
|
||||||
|
|
||||||
if( value != 0.0 && ( text == wxS( "0" ) || text == wxS( "-0" ) ) )
|
|
||||||
{
|
|
||||||
text.Printf( wxS( "%.10f" ), value );
|
|
||||||
removeTrailingZeros( text );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( aAddUnitsText )
|
if( aAddUnitsText )
|
||||||
text += EDA_UNIT_UTILS::GetText( aUnits, aType );
|
text += EDA_UNIT_UTILS::GetText( aUnits, aType );
|
||||||
|
|
Loading…
Reference in New Issue