diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index d8692b824b..a9723a3e4d 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -1414,11 +1414,11 @@ static bool checkCanonicalPath(const std::map& docs) auto docName = [](App::Document* doc) -> QString { if (doc->Label.getStrValue() == doc->getName()) { - return QString::fromLatin1(doc->getName()); + return QString::fromUtf8(doc->getName()); } return QStringLiteral("%1 (%2)").arg( QString::fromUtf8(doc->Label.getValue()), - QString::fromLatin1(doc->getName()) + QString::fromUtf8(doc->getName()) ); }; int count = 0;