When testing for the spin control input bounds, test for the MIN_INT

as well
This commit is contained in:
bubnikv 2019-05-20 15:00:35 +02:00
parent 8133aa1324
commit dc0e53cbdd

View file

@ -508,7 +508,7 @@ void SpinCtrl::BUILD() {
long value;
const bool parsed = e.GetString().ToLong(&value);
tmp_value = parsed && value <= INT_MAX ? (int)value : UNDEF_VALUE;
tmp_value = parsed && value >= INT_MIN && <= INT_MAX ? (int)value : UNDEF_VALUE;
#ifdef __WXOSX__
// Forcibly set the input value for SpinControl, since the value