Commit 252d7e96 by Alexander Wiebel

[---] patched with the changes of 7e24a5f9c3ff that apply to line endings

parent 2d1e43ef
......@@ -290,7 +290,7 @@ void WDataSetFibers::saveSelected( std::string filename, boost::shared_ptr< std:
vBuffer.push_back( '\n' );
boost::filesystem::path p( filename );
boost::filesystem::ofstream ofs( p );
boost::filesystem::ofstream ofs( p, std::ios_base::binary );
for ( unsigned int i = 0; i < vBuffer.size(); ++i )
{
......
......@@ -475,7 +475,7 @@ bool WMMarchingCubes::save() const
}
const char* c_file = m_meshFile->get().file_string().c_str();
std::ofstream dataFile( c_file );
std::ofstream dataFile( c_file, std::ios_base::binary );
if ( dataFile )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment