Gui: fix ExpressionBinding::apply()

Remove extra '.' because of newly introduced local property referencing
syntax.
This commit is contained in:
Zheng, Lei
2019-09-30 11:39:07 +08:00
committed by wmayer
parent bda372be83
commit a230d0d9a3

View File

@@ -233,8 +233,12 @@ bool ExpressionBinding::apply()
/* Skip updating read-only properties */
if (prop->isReadOnly())
return true;
return apply(Gui::Command::getObjectCmd(docObj) + "." + getPath().toEscapedString());
std::string _path = getPath().toEscapedString();
const char *path = _path.c_str();
if(path[0] == '.')
++path;
return apply(Gui::Command::getObjectCmd(docObj) + "." + path);
}
void ExpressionBinding::expressionChange(const ObjectIdentifier& id) {