mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
When testing for the spin control input bounds, test for the MIN_INT
as well
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user