Skip to content

Commit

Permalink
+ fixes #1512: After trying to set a bad value, the pad editor does n…
Browse files Browse the repository at this point in the history
…ot show
  • Loading branch information
wwmayer committed Apr 23, 2014
1 parent dd9f4df commit a31ce8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gui/InputField.cpp
Expand Up @@ -247,9 +247,9 @@ std::vector<QString> InputField::getHistory(void)

void InputField::setToLastUsedValue(void)
{
std::vector<QString> hist = getHistory();
if(hist.size()>0)
this->setValue(Base::Quantity::parse(hist[0]));
std::vector<QString> hist = getHistory();
if(!hist.empty())
this->setText(hist[0]);
}

void InputField::pushToSavedValues(const QString &valueq)
Expand Down

0 comments on commit a31ce8e

Please sign in to comment.