When testing for the spin control input bounds, test for the MIN_INT
as well
This commit is contained in:
parent
8133aa1324
commit
dc0e53cbdd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue