]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL15983 (EDF PAL 413: Bug when displaying empty groups)
authoreap <eap@opencascade.com>
Fri, 18 May 2007 13:47:36 +0000 (13:47 +0000)
committereap <eap@opencascade.com>
Fri, 18 May 2007 13:47:36 +0000 (13:47 +0000)
   /* Case of only one subshape */
-  if (list->length() == 1) {
+  if (list->length() == 1 && list[0] > 0) {
     S = anIndices.FindKey(list[0]);
   }

src/GEOMClient/GEOM_Client.cxx

index 2659f6209b4f5a38bba8e62f6932f59d71aa854c..3e8eb2058c0d164fe2b3d97b64240038852f1254 100644 (file)
@@ -222,7 +222,7 @@ TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p
   TopExp::MapShapes(aMainShape, anIndices);
 
   /* Case of only one subshape */
-  if (list->length() == 1) {
+  if (list->length() == 1 && list[0] > 0) {
     S = anIndices.FindKey(list[0]);
   }
   else {