Salome HOME
PAL13617 NbSubMesh() method works wrong
authoreap <eap@opencascade.com>
Fri, 13 Feb 2009 13:45:56 +0000 (13:45 +0000)
committereap <eap@opencascade.com>
Fri, 13 Feb 2009 13:45:56 +0000 (13:45 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx

index 37ecf2398928eea3af7a9afdf48ff8e7ac33a462..499c3b75163daf0c32fdbacf4b3cc5e2136f780a 100644 (file)
@@ -1793,7 +1793,7 @@ CORBA::Long SMESH_Mesh_i::NbPrismsOfOrder(SMESH::ElementOrder order)
 CORBA::Long SMESH_Mesh_i::NbSubMesh()throw(SALOME::SALOME_Exception)
 {
   Unexpect aCatch(SALOME_SalomeException);
-  return _impl->NbSubMesh();
+  return _mapSubMesh_i.size();
 }
 
 //=============================================================================