Use correct format specifier when displaying inches
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12925
This commit is contained in:
parent
527da0d18c
commit
436129cb75
|
@ -202,7 +202,7 @@ wxString PGPROPERTY_DISTANCE::DistanceToString( wxVariant& aVariant, int aArgFla
|
||||||
switch( PROPERTY_MANAGER::Instance().GetUnits() )
|
switch( PROPERTY_MANAGER::Instance().GetUnits() )
|
||||||
{
|
{
|
||||||
case EDA_UNITS::INCHES:
|
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:
|
case EDA_UNITS::MILS:
|
||||||
return wxString::Format( wxT( "%d mils" ), pcbIUScale.IUToMils( distanceIU ) );
|
return wxString::Format( wxT( "%d mils" ), pcbIUScale.IUToMils( distanceIU ) );
|
||||||
|
|
Loading…
Reference in New Issue