1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

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
+1 -1
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