Salome HOME
54524: [FORUM]: Export in STL work wrong' issue
[modules/smesh.git] / src / SMESHUtils / SMESH_File.cxx
index 888de195691438d7f5023a69b1787abe82193731..a8983d247e1c25c84edbb09bd186ebe904d3e87d 100644 (file)
@@ -319,6 +319,8 @@ bool SMESH_File::getInts(std::vector<int>& ints)
 
 bool SMESH_File::openForWriting()
 {
+  close();
+
 #ifdef WIN32
 #ifdef UNICODE
   std::wstring  aName = Kernel_Utils::utf8_decode_s(_name);