From 8d1f0ceadc2e0ccd233f0feeadeca66567731e36 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 26 Nov 2017 17:51:20 +0100 Subject: [PATCH] in PropertyStringItem prepare input string for assignment via Python --- src/Gui/propertyeditor/PropertyItem.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index 98adde5173..bb3ced58e2 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -522,6 +522,7 @@ void PropertyStringItem::setValue(const QVariant& value) if (!value.canConvert(QVariant::String)) return; QString val = value.toString(); + val = QString::fromUtf8(Base::Interpreter().strToPython(val.toUtf8()).c_str()); QString data = QString::fromLatin1("\"%1\"").arg(val); setPropertyValue(data); }