Salome HOME
Replace oe by ?
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index ad026374c3e1b4a55b3405ae0bce14f4565c3ae2..6c062c61bd44e0fff993cebce3c30e20e960237b 100644 (file)
@@ -2489,7 +2489,7 @@ void SMESH_Mesh_i::ExportMED (const char* file,
                               CORBA::Boolean auto_groups)
   throw(SALOME::SALOME_Exception)
 {
-  ExportToMEDX(file,auto_groups,SMESH::MED_V2_1,true);
+  ExportToMEDX(file,auto_groups,SMESH::MED_V2_2,true);
 }
 
 void SMESH_Mesh_i::ExportDAT (const char *file)
@@ -2822,7 +2822,7 @@ SMESH::long_array* SMESH_Mesh_i::GetElementsByType( SMESH::ElementType theElemTy
   // No sense in returning ids of elements along with ids of nodes:
   // when theElemType == SMESH::ALL, return node ids only if
   // there are no elements
-  if ( theElemType == SMESH::NODE || theElemType == SMESH::ALL && nbElements == 0 )
+  if ( theElemType == SMESH::NODE || (theElemType == SMESH::ALL && nbElements == 0) )
     return GetNodesId();
 
   aResult->length( nbElements );