Salome HOME
0021294: EDF 1890 : Problem with groups on geometry when dealing with split into...
authoreap <eap@opencascade.com>
Tue, 7 Jun 2011 06:46:33 +0000 (06:46 +0000)
committereap <eap@opencascade.com>
Tue, 7 Jun 2011 06:46:33 +0000 (06:46 +0000)
   in SetSubShape(const int aShID)
-  if ( aShID > 1 )
+  if ( aShID > 0 )
     SetSubShape( GetMeshDS()->IndexToShape( aShID ));

src/SMESH/SMESH_MesherHelper.cxx

index 698446b5c53268c5c592ee118fce14bbd3a95dee..dd79438606bbf89049efc3740d35e5a8456aa865 100644 (file)
@@ -194,7 +194,7 @@ void SMESH_MesherHelper::SetSubShape(const int aShID)
 {
   if ( aShID == myShapeID )
     return;
 {
   if ( aShID == myShapeID )
     return;
-  if ( aShID > 1 )
+  if ( aShID > 0 )
     SetSubShape( GetMeshDS()->IndexToShape( aShID ));
   else
     SetSubShape( TopoDS_Shape() );
     SetSubShape( GetMeshDS()->IndexToShape( aShID ));
   else
     SetSubShape( TopoDS_Shape() );