Navigation Menu

Skip to content

Commit

Permalink
+ fixes #1565: Images in the 3D plane are not shown after opening a p…
Browse files Browse the repository at this point in the history
…roject
  • Loading branch information
wwmayer committed Jun 23, 2014
1 parent b08e5de commit e036460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/PropertyFile.cpp
Expand Up @@ -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(): "
Expand All @@ -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(): "
Expand Down

0 comments on commit e036460

Please sign in to comment.