From 7d2f8fac6e167c1cdc909a2ada86dd82215ea121 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 22 Nov 2024 14:23:16 +0100 Subject: [PATCH] Start: Fix extracting thumbnails on Windows --- src/Mod/Start/App/DisplayedFilesModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }