From cfdbc14b4bab30ca503d590006f5ba1bfc85f372 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Fri, 16 Sep 2011 18:29:36 +0200 Subject: [PATCH] Files were not opened in binary mode which caused problems with vox files under windows --- common/clitkCommon.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index 785b0fd..10f608e 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -243,7 +243,7 @@ double clitk::ComputeEuclideanDistanceFromPointToPlane(const itk::ContinuousInde // Open a file for reading void clitk::openFileForReading(std::ifstream & is, const std::string & filename) { - is.open(filename.c_str(), std::ios::in); + is.open(filename.c_str(), std::ios::in | std::ios::binary); if ( is.fail() ) { clitkExceptionMacro("Could not open file for reading: " << filename << ". Error is : <" -- 2.47.1