-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
subShapes.insert( subShapes.end(), anIndices.cbegin(), anIndices.cend() );
}
- /* Case of only one subshape */
- if ( list->length() == 1 && list[0] > 1 ) {
+ /* Case of only one subshape, excluding groups of one main shape */
+ if ( list->length() == 1 &&
+ !(aShape->GetType() == 37 && list[0] == 1) &&
+ list[0] > 0 ) {
S = subShapes[list[0]-1];
}
else {