Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-05-20 16:00:35 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-20 16:00:35 +0300
commitdc0e53cbdd7e1d2dc75d1d1b978092d4bdce5840 (patch)
treee2cb46a40fe44d5492a614d8b225703467f73b8a /src/slic3r/GUI/Field.cpp
parent8133aa1324c9dde4a4f0e33ae8afe4e1cad8c147 (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.cpp2
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