From a31ce8e38648ee739da3ddd432089bbeb4251d4f Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 23 Apr 2014 17:10:28 +0200 Subject: [PATCH] + fixes #0001512: After trying to set a bad value, the pad editor does not show --- src/Gui/InputField.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/InputField.cpp b/src/Gui/InputField.cpp index 1792a27c46ce..6b8ecc6c9ba7 100644 --- a/src/Gui/InputField.cpp +++ b/src/Gui/InputField.cpp @@ -247,9 +247,9 @@ std::vector InputField::getHistory(void) void InputField::setToLastUsedValue(void) { - std::vector hist = getHistory(); - if(hist.size()>0) - this->setValue(Base::Quantity::parse(hist[0])); + std::vector hist = getHistory(); + if(!hist.empty()) + this->setText(hist[0]); } void InputField::pushToSavedValues(const QString &valueq)