SHAPERSTUDY: fix case of a group containing the main shape

This commit is contained in:
eap 2020-04-11 01:24:18 +03:00
parent 13b2d4d02d
commit 39f7977c42

View File

@ -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 {