0052845: GetInPlace selection option does not work in Create Group dialog

This commit is contained in:
skv 2015-12-30 17:12:45 +03:00
parent f069900cfc
commit 6b60614b1f

View File

@ -881,6 +881,12 @@ int GroupGUI_GroupDlg::getSelectedSubshapes (TColStd_IndexedMapOfInteger& theMap
TopoDS_Shape aShape; TopoDS_Shape aShape;
if (GEOMBase::GetShape(aGeomObj, aShape)) { if (GEOMBase::GetShape(aGeomObj, aShape)) {
if (aGeomObj->GetType() == GEOM_GROUP || aShape.ShapeType() == getShapeType()) { if (aGeomObj->GetType() == GEOM_GROUP || aShape.ShapeType() == getShapeType()) {
if (subSelectionWay() != ALL_SUBSHAPES &&
GEOMBase::GetName(aGeomObj) == myShape2Name->text()) {
// Skip selected in place object.
continue;
}
TopTools_IndexedMapOfShape aMainMap; TopTools_IndexedMapOfShape aMainMap;
TopoDS_Shape aMainShape = GEOM_Client::get_client().GetShape(GeometryGUI::GetGeomGen(), myMainObj); TopoDS_Shape aMainShape = GEOM_Client::get_client().GetShape(GeometryGUI::GetGeomGen(), myMainObj);
TopExp::MapShapes(aMainShape, aMainMap); TopExp::MapShapes(aMainShape, aMainMap);