]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0052845: GetInPlace selection option does not work in Create Group dialog
authorskv <skv@opencascade.com>
Wed, 30 Dec 2015 14:12:45 +0000 (17:12 +0300)
committerskv <skv@opencascade.com>
Wed, 30 Dec 2015 14:12:45 +0000 (17:12 +0300)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 5bf351f85bc6bf1973d838a0f251e7059b3687c2..aec21881f3cfd50afd055b31effe0229429e5d53 100644 (file)
@@ -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);