diff options
author | bubnikv <bubnikv@gmail.com> | 2019-05-20 16:00:35 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-05-20 16:00:35 +0300 |
commit | dc0e53cbdd7e1d2dc75d1d1b978092d4bdce5840 (patch) | |
tree | e2cb46a40fe44d5492a614d8b225703467f73b8a /src/slic3r/GUI/Field.cpp | |
parent | 8133aa1324c9dde4a4f0e33ae8afe4e1cad8c147 (diff) |
When testing for the spin control input bounds, test for the MIN_INT
as well
Diffstat (limited to 'src/slic3r/GUI/Field.cpp')
-rw-r--r-- | src/slic3r/GUI/Field.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 01fa9eedc..b3017813d 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -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 |