From dbf0644b60c35273525985fa13859ad39b0c10df Mon Sep 17 00:00:00 2001 From: wandererfan Date: Wed, 18 Sep 2019 07:49:22 -0400 Subject: [PATCH] [Gui]Fix Py SyntaxError on " in PropertyStringList --- 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 fa5c0f22ea..b372f39fe8 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -2308,6 +2308,7 @@ void PropertyStringListItem::setValue(const QVariant& value) text.replace(QString::fromUtf8("'"),QString::fromUtf8("\\'")); std::string pystr = Base::Tools::escapedUnicodeFromUtf8(text.toUtf8()); + pystr = Base::Interpreter().strToPython(pystr.c_str()); str << "u\"" << pystr.c_str() << "\", "; } str << "]";