diff --git a/sources/ElementsCollection/elementslocation.cpp b/sources/ElementsCollection/elementslocation.cpp index b9b56cad6..9ab1506d2 100644 --- a/sources/ElementsCollection/elementslocation.cpp +++ b/sources/ElementsCollection/elementslocation.cpp @@ -703,11 +703,11 @@ pugi::xml_document ElementsLocation::pugiXml() const if (!m_project) { #ifndef Q_OS_LINUX - if (docu.load_file(m_file_system_path.toStdString().c_str())) { + if (docu.load_file(m_file_system_path.toStdWString().c_str())) { docu.save(m_string_stream); } #else - docu.load_file(m_file_system_path.toStdString().c_str()); + docu.load_file(m_file_system_path.toStdWString().c_str()); #endif } else diff --git a/sources/ElementsCollection/fileelementcollectionitem.cpp b/sources/ElementsCollection/fileelementcollectionitem.cpp index 18ba33af6..15274722c 100644 --- a/sources/ElementsCollection/fileelementcollectionitem.cpp +++ b/sources/ElementsCollection/fileelementcollectionitem.cpp @@ -138,7 +138,7 @@ QString FileElementCollectionItem::localName() { QString str(fileSystemPath() % "/qet_directory"); pugi::xml_document docu; - if(docu.load_file(str.toStdString().c_str())) + if(docu.load_file(str.toStdWString().c_str())) { if (QString(docu.document_element().name()) == "qet-directory")