From: skv Date: Wed, 30 Dec 2015 14:12:45 +0000 (+0300) Subject: 0052845: GetInPlace selection option does not work in Create Group dialog X-Git-Tag: V7_8_0a1~6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6b60614b1f2a8e1c457002f78e3932590510076a;p=modules%2Fgeom.git 0052845: GetInPlace selection option does not work in Create Group dialog --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 5bf351f85..aec21881f 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -881,6 +881,12 @@ int GroupGUI_GroupDlg::getSelectedSubshapes (TColStd_IndexedMapOfInteger& theMap TopoDS_Shape aShape; if (GEOMBase::GetShape(aGeomObj, aShape)) { 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; TopoDS_Shape aMainShape = GEOM_Client::get_client().GetShape(GeometryGUI::GetGeomGen(), myMainObj); TopExp::MapShapes(aMainShape, aMainMap);