mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-15 12:48:08 +08:00
When testing for the spin control input bounds, test for the MIN_INT
as well
This commit is contained in:
parent
8133aa1324
commit
dc0e53cbdd
@ -508,7 +508,7 @@ void SpinCtrl::BUILD() {
|
|||||||
|
|
||||||
long value;
|
long value;
|
||||||
const bool parsed = e.GetString().ToLong(&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__
|
#ifdef __WXOSX__
|
||||||
// Forcibly set the input value for SpinControl, since the value
|
// Forcibly set the input value for SpinControl, since the value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user