NPAL15983 (EDF PAL 413: Bug when displaying empty groups)

/* Case of only one subshape */
-  if (list->length() == 1) {
+  if (list->length() == 1 && list[0] > 0) {
     S = anIndices.FindKey(list[0]);
   }
This commit is contained in:
eap 2007-05-18 13:47:36 +00:00
parent 8dbde85ddc
commit 645aebdeb7

View File

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