diff --git a/src/Gui/Widgets.cpp b/src/Gui/Widgets.cpp index bd3e6ffead..fe5c01c13a 100644 --- a/src/Gui/Widgets.cpp +++ b/src/Gui/Widgets.cpp @@ -1577,7 +1577,12 @@ bool ExpLineEdit::apply(const std::string& propName) if (!ExpressionBinding::apply(propName)) { if (!autoClose) { QString val = QString::fromUtf8(Base::Interpreter().strToPython(text().toUtf8()).c_str()); - Gui::Command::doCommand(Gui::Command::Doc, "%s = \"%s\"", propName.c_str(), val.constData()); + Gui::Command::doCommand( + Gui::Command::Doc, + "%s = \"%s\"", + propName.c_str(), + val.toUtf8().constData() + ); } return true; }