From e2e4ecf36c09f45ee54e1d0a68930d777ca1d2a4 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 3 Apr 2020 16:22:35 +0200 Subject: [PATCH] Gui: [skip ci] fix regression by using UTF-8 encoding in PropertyItem::setPropertyValue --- src/Gui/propertyeditor/PropertyItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 2e1e50f52b..5ae2414d30 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -502,7 +502,7 @@ void PropertyItem::setPropertyValue(const QString& value) } ss << parent->getPropertyPrefix() << prop->getName() - << " = " << value.toLatin1().constData() << '\n'; + << " = " << value.toUtf8().constData() << '\n'; } std::string cmd = ss.str();