From b4e3fcb428b7b58ce29db2771bf09d4920740846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Skowro=C5=84ski?= Date: Sun, 6 Sep 2015 19:14:45 +0200 Subject: [PATCH] Fix for bugs #2236 & #2237 --- src/Gui/QuantitySpinBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index 9e679c551..d37948b42 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -67,7 +67,7 @@ public: QString copy = input; int len = copy.size(); - pos = len; + const bool plus = max >= 0; const bool minus = min <= 0;