]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13617 NbSubMesh() method works wrong
authoreap <eap@opencascade.com>
Fri, 13 Feb 2009 13:46:27 +0000 (13:46 +0000)
committereap <eap@opencascade.com>
Fri, 13 Feb 2009 13:46:27 +0000 (13:46 +0000)
-  return _impl->NbSubMesh();
+  return _mapSubMesh_i.size();

src/SMESH_I/SMESH_Mesh_i.cxx

index 04697f7d4d133854e6610c4a0e9defcfb9bf82a6..8371ccf2f28b34df70397330b2d982b4343012b9 100644 (file)
@@ -2333,7 +2333,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();
 }
 
 //=============================================================================