From e036460635273237f5600d894e499496db4bd72d Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 23 Jun 2014 14:02:26 +0200 Subject: [PATCH] + fixes #0001565: Images in the 3D plane are not shown after opening a project --- src/App/PropertyFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/PropertyFile.cpp b/src/App/PropertyFile.cpp index 5858d8e1e3..4dd31ddc60 100644 --- a/src/App/PropertyFile.cpp +++ b/src/App/PropertyFile.cpp @@ -385,7 +385,7 @@ void PropertyFileIncluded::Restore(Base::XMLReader &reader) void PropertyFileIncluded::SaveDocFile (Base::Writer &writer) const { - Base::ifstream from(Base::FileInfo(_cValue.c_str())); + Base::ifstream from(Base::FileInfo(_cValue.c_str()), std::ios::in | std::ios::binary); if (!from) { std::stringstream str; str << "PropertyFileIncluded::SaveDocFile(): " @@ -404,7 +404,7 @@ void PropertyFileIncluded::SaveDocFile (Base::Writer &writer) const void PropertyFileIncluded::RestoreDocFile(Base::Reader &reader) { Base::FileInfo fi(_cValue.c_str()); - Base::ofstream to(fi); + Base::ofstream to(fi, std::ios::out | std::ios::binary); if (!to) { std::stringstream str; str << "PropertyFileIncluded::RestoreDocFile(): "