Skip to content

Commit

Permalink
[Gui]Fix Py SyntaxError on " in PropertyStringList
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Sep 19, 2019
1 parent c8a0c2c commit dbf0644
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Gui/propertyeditor/PropertyItem.cpp
Expand Up @@ -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 << "]";
Expand Down

0 comments on commit dbf0644

Please sign in to comment.