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 {