From: eap Date: Fri, 10 Apr 2020 22:24:18 +0000 (+0300) Subject: SHAPERSTUDY: fix case of a group containing the main shape X-Git-Tag: V9_5_0b1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39f7977c427b868cda5ac740e1231e7e52c91708;p=modules%2Fgeom.git SHAPERSTUDY: fix case of a group containing the main shape --- 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 {