mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
UNIT_BINDER: Fix typo affecting transformed points
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/18788
This commit is contained in:
parent
953bc2d4bd
commit
717847cc31
@ -456,7 +456,7 @@ wxString UNIT_BINDER::getTextForValue( long long int aValue ) const
|
||||
{
|
||||
const double displayValue = m_originTransforms.ToDisplay( aValue, m_coordType );
|
||||
wxString textValue = EDA_UNIT_UTILS::UI::StringFromValue(
|
||||
*m_iuScale, m_units, setPrecision( aValue, false ), false, m_dataType );
|
||||
*m_iuScale, m_units, setPrecision( displayValue, false ), false, m_dataType );
|
||||
|
||||
if( displayValue == 0 && m_negativeZero )
|
||||
textValue = wxT( "-" ) + textValue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user