X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_File.cxx;h=a8983d247e1c25c84edbb09bd186ebe904d3e87d;hb=e3019524b4caa444880639745b22f30d577aba2c;hp=888de195691438d7f5023a69b1787abe82193731;hpb=4f3cfd814ea3b8d513f9d4340c6ae70b6c97f288;p=modules%2Fsmesh.git diff --git a/src/SMESHUtils/SMESH_File.cxx b/src/SMESHUtils/SMESH_File.cxx index 888de1956..a8983d247 100644 --- a/src/SMESHUtils/SMESH_File.cxx +++ b/src/SMESHUtils/SMESH_File.cxx @@ -319,6 +319,8 @@ bool SMESH_File::getInts(std::vector& ints) bool SMESH_File::openForWriting() { + close(); + #ifdef WIN32 #ifdef UNICODE std::wstring aName = Kernel_Utils::utf8_decode_s(_name);