Fix parsing unsigned numbers in wxIntegerValidatorBase

Use wxNumberFormatter::FromString() overload taking wxULongLong_t to
allow parsing numbers greater than LLONG_MAX.
This commit is contained in:
Vadim Zeitlin
2021-02-21 19:05:13 +01:00
parent eb64202ad4
commit f1e6af089a
2 changed files with 23 additions and 3 deletions

View File

@@ -303,7 +303,7 @@ protected:
// Provide methods for wxNumValidator use.
wxString ToString(LongestValueType value) const;
static bool FromString(const wxString& s, LongestValueType *value);
bool FromString(const wxString& s, LongestValueType *value) const;
void DoSetMin(LongestValueType min) { m_min = min; }
LongestValueType DoGetMin() const { return m_min; }