]> SALOME platform Git repositories - modules/smesh.git/commit
Salome HOME
fix GetSubMesh()
authoreap <eap@opencascade.com>
Thu, 27 Aug 2009 13:58:53 +0000 (13:58 +0000)
committereap <eap@opencascade.com>
Thu, 27 Aug 2009 13:58:53 +0000 (13:58 +0000)
commit30aaa793b970f657acd97be09ab6ec82ee345c44
tree28c9229488adf1a0e8bbbf27cf390b5db355549f
parent7dba98132cd34d001b36187817f4919b8a3d7d07
fix GetSubMesh()
     if ( it.More() )
+    {
       index = _myMeshDS->AddCompoundSubmesh( aSubShape, it.Value().ShapeType() );
+      if ( index > _nbSubShapes ) _nbSubShapes = index; // not to create sm for this group again
+    }
   }
src/SMESH/SMESH_Mesh.cxx