From 645aebdeb7ee9d7c4679e7dfc1031830b09ec1fe Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 18 May 2007 13:47:36 +0000 Subject: [PATCH 1/1] 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]); } --- src/GEOMClient/GEOM_Client.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2