mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01: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())
|
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);
|
ValueChange vc(getFormatter(), getValue(), newValue);
|
||||||
setValue(newValue);
|
setValue(newValue);
|
||||||
textChanged.notify(this, vc);
|
textChanged.notify(this, vc);
|
||||||
|
|||||||
Reference in New Issue
Block a user