Fix failure in Partition if full compsolid is selected (do not place all its sub-solids to the list of unused shapes)
if (aCSIt->first->shapeType() != GeomAPI_Shape::COMPSOLID)
continue;
+ // check the compsolid is selected
+ if (aCSIt->second.size() == 1 && aCSIt->first->isEqual(aCSIt->second.front()))
+ continue;
+
+ // process all sub-solids of compsolid
ListOfShape aNotUsedSolids;
for (GeomAPI_ShapeExplorer anExp(aCSIt->first, GeomAPI_Shape::SOLID);
anExp.more(); anExp.next()) {