Salome HOME
Merge from V6_4_BR 05/12/2011
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index 8bc116f05f2e1b439d20c4805b95aeefb1d41b98..fc513201a3b8ac86f05fb866b3e451f363602a74 100644 (file)
@@ -2549,7 +2549,7 @@ void SMESH_Mesh_i::PrepareForWriting (const char* file, bool overwrite)
 }
 
 string SMESH_Mesh_i::PrepareMeshNameAndGroups(const char* file,
-                                             CORBA::Boolean overwrite)
+                                              CORBA::Boolean overwrite)
 {
   // Perform Export
   PrepareForWriting(file, overwrite);
@@ -2595,7 +2595,7 @@ void SMESH_Mesh_i::ExportToMEDX (const char* file,
   throw(SALOME::SALOME_Exception)
 {
   Unexpect aCatch(SALOME_SalomeException);
-  string aMeshName = PrepareMeshNameAndGroups(file, true);
+  string aMeshName = PrepareMeshNameAndGroups(file, overwrite);
   TPythonDump() << _this() << ".ExportToMEDX( r'"
                 << file << "', " << auto_groups << ", " << theVersion << ", " << overwrite << " )";