Salome HOME
Merge branch 'master' into V9_3_BR
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index 0b4d0937bbb145a5b7977fbd1016f7f154cc1e10..67daefbd06612cd62e45f4de421d39b4f8d7218e 100644 (file)
@@ -3283,9 +3283,9 @@ CORBA::Boolean SMESH_Mesh_i::HasDuplicatedGroupNamesMED()
 
 void SMESH_Mesh_i::PrepareForWriting (const char* file, bool overwrite)
 {
-  SMESH_File aFile( file );
+  SMESH_File aFile( file, false );
   SMESH_Comment msg;
-  if (aFile.exists()) {
+  if ( aFile.exists() ) {
     // existing filesystem node
     if ( !aFile.isDirectory() ) {
       if ( aFile.openForWriting() ) {