diff --git a/src/Mod/Start/App/DisplayedFilesModel.cpp b/src/Mod/Start/App/DisplayedFilesModel.cpp index 90fb26eeacca..604071aa04e7 100644 --- a/src/Mod/Start/App/DisplayedFilesModel.cpp +++ b/src/Mod/Start/App/DisplayedFilesModel.cpp @@ -161,7 +161,7 @@ QByteArray loadFCStdThumbnail(const std::string& pathToFCStdFile) if (proj.containsFile(thumb)) { createThumbnailsDir(); Base::FileInfo fi(thumbnailFile); - Base::ofstream str(fi); + Base::ofstream str(fi, std::ios::in | std::ios::binary); proj.readInputFileDirect(thumb, str); str.close(); }