From fc93c63a190dd83ca5d832d3000a8532a53c03b1 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 23 Apr 2024 11:08:14 -0700 Subject: [PATCH] Revert "Remove trailing zeros from all values" This reverts commit abd0388794c18ea217f55fb4c376e6dd15c209f7. --- common/eda_units.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common/eda_units.cpp b/common/eda_units.cpp index 42812bdfb0..8d33dd2795 100644 --- a/common/eda_units.cpp +++ b/common/eda_units.cpp @@ -464,13 +464,6 @@ wxString EDA_UNIT_UTILS::UI::MessageTextFromValue( const EDA_IU_SCALE& aIuScale, } 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 ) text += EDA_UNIT_UTILS::GetText( aUnits, aType );