]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
SHAPERSTUDY: fix case of a group containing the main shape
authoreap <eap@opencascade.com>
Fri, 10 Apr 2020 22:24:18 +0000 (01:24 +0300)
committereap <eap@opencascade.com>
Fri, 10 Apr 2020 22:24:18 +0000 (01:24 +0300)
src/GEOMClient/GEOM_Client.cxx

index 28d459dccf9fa6a530a50755d0830d22d0c720cc..77465898bdb85d4adb55ba865575b9c07118aa6b 100644 (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 {