mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
fixed empty value assignment errors
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user