From 39f7977c427b868cda5ac740e1231e7e52c91708 Mon Sep 17 00:00:00 2001 From: eap Date: Sat, 11 Apr 2020 01:24:18 +0300 Subject: [PATCH] SHAPERSTUDY: fix case of a group containing the main shape --- 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 28d459dcc..77465898b 100644 --- a/src/GEOMClient/GEOM_Client.cxx +++ b/src/GEOMClient/GEOM_Client.cxx @@ -240,7 +240,7 @@ TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p } /* Case of only one subshape */ - if ( list->length() == 1 && list[0] > 0 ) { + if ( list->length() == 1 && list[0] > 1 ) { S = subShapes[list[0]-1]; } else { -- 2.39.2