From 436129cb75ec6217df07c851eb069010007a12dc Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 24 Nov 2022 16:52:22 -0500 Subject: [PATCH] Use correct format specifier when displaying inches Fixes https://gitlab.com/kicad/code/kicad/-/issues/12925 --- common/properties/pg_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/properties/pg_properties.cpp b/common/properties/pg_properties.cpp index 3eaebc402c..92e6196b3f 100644 --- a/common/properties/pg_properties.cpp +++ b/common/properties/pg_properties.cpp @@ -202,7 +202,7 @@ wxString PGPROPERTY_DISTANCE::DistanceToString( wxVariant& aVariant, int aArgFla switch( PROPERTY_MANAGER::Instance().GetUnits() ) { case EDA_UNITS::INCHES: - return wxString::Format( wxT( "%d in" ), pcbIUScale.IUToMils( distanceIU ) / 1000.0 ); + return wxString::Format( wxT( "%g in" ), pcbIUScale.IUToMils( distanceIU ) / 1000.0 ); case EDA_UNITS::MILS: return wxString::Format( wxT( "%d mils" ), pcbIUScale.IUToMils( distanceIU ) );