From f4372a2de9a7d6ff1160840185bc71485779ee24 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 31 May 2022 21:50:52 -0400 Subject: [PATCH] UNIT_BINDER should support long long ints Fixes https://gitlab.com/kicad/code/kicad/-/issues/10870 (cherry picked from commit eb1164fc938a631f9846e18a32d7963321893e2b) --- common/widgets/unit_binder.cpp | 2 +- include/widgets/unit_binder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/widgets/unit_binder.cpp b/common/widgets/unit_binder.cpp index 3f1962c0db..79138a32fc 100644 --- a/common/widgets/unit_binder.cpp +++ b/common/widgets/unit_binder.cpp @@ -278,7 +278,7 @@ bool UNIT_BINDER::Validate( double aMin, double aMax, EDA_UNITS aUnits ) } -void UNIT_BINDER::SetValue( int aValue ) +void UNIT_BINDER::SetValue( long long int aValue ) { double value = aValue; double displayValue = m_originTransforms.ToDisplay( value, m_coordType ); diff --git a/include/widgets/unit_binder.h b/include/widgets/unit_binder.h index a51418f24a..f3503686d7 100644 --- a/include/widgets/unit_binder.h +++ b/include/widgets/unit_binder.h @@ -85,7 +85,7 @@ public: /** * Set new value (in Internal Units) for the text field, taking care of units conversion. */ - virtual void SetValue( int aValue ); + virtual void SetValue( long long int aValue ); void SetValue( const wxString& aValue );