From: eap Date: Fri, 18 May 2007 13:47:36 +0000 (+0000) Subject: NPAL15983 (EDF PAL 413: Bug when displaying empty groups) X-Git-Tag: V3_2_7~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=645aebdeb7ee9d7c4679e7dfc1031830b09ec1fe;p=modules%2Fgeom.git 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]); } --- diff --git a/src/GEOMClient/GEOM_Client.cxx b/src/GEOMClient/GEOM_Client.cxx index 2659f6209..3e8eb2058 100644 --- a/src/GEOMClient/GEOM_Client.cxx +++ b/src/GEOMClient/GEOM_Client.cxx @@ -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 {