fixed empty value assignment errors

This commit is contained in:
Peter Schojer
2008-10-01 10:22:08 +00:00
parent eb9727882f
commit 8ccc58be02

View File

@@ -85,7 +85,9 @@ void TextFieldCell::handleForm(const std::string& field, const std::string& valu
{
if (getValue().empty() || value != getString())
{
Poco::Any newValue = getFormatter()->parse(value);
Poco::Any newValue;
if (!value.empty())
newValue = getFormatter()->parse(value);
ValueChange vc(getFormatter(), getValue(), newValue);
setValue(newValue);
textChanged.notify(this, vc);