Use the same StringFromValue() formatting in Eeschema as in other tools

This commit is contained in:
Mikolaj Wielgus 2021-03-12 20:42:39 +01:00 committed by Seth Hillbrand
parent de12ebf16f
commit 4e438763a3
1 changed files with 0 additions and 10 deletions

View File

@ -242,14 +242,6 @@ wxString StringFromValue( EDA_UNITS aUnits, double aValue, bool aAddUnitSymbol,
}
#if defined( EESCHEMA )
wxString stringValue = wxString::Format( wxT( "%.3f" ), value_to_print );
// Strip trailing zeros. However, keep at least 3 digits in mantissa for readability.
StripTrailingZeros( stringValue, 3 );
#else
char buf[50];
int len;
@ -275,8 +267,6 @@ wxString StringFromValue( EDA_UNITS aUnits, double aValue, bool aAddUnitSymbol,
wxString stringValue( buf, wxConvUTF8 );
#endif
if( aAddUnitSymbol )
{
switch( aUnits )