X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCollectionPlugin%2FCollectionPlugin_GroupSubstraction.cpp;h=46056805da8ad14dcc1d66b1af33b10d39820016;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=18f0acad5f5e1ac63a8ad231f56059fd9fb0bcf2;hpb=d165b06723a6703ac10ca94f5800f8168379a3ad;p=modules%2Fshaper.git diff --git a/src/CollectionPlugin/CollectionPlugin_GroupSubstraction.cpp b/src/CollectionPlugin/CollectionPlugin_GroupSubstraction.cpp index 18f0acad5..46056805d 100644 --- a/src/CollectionPlugin/CollectionPlugin_GroupSubstraction.cpp +++ b/src/CollectionPlugin/CollectionPlugin_GroupSubstraction.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -30,7 +30,7 @@ #include #include -typedef std::set SetOfShape; +typedef std::set SetOfShape; CollectionPlugin_GroupSubstraction::CollectionPlugin_GroupSubstraction() { @@ -101,6 +101,9 @@ void CollectionPlugin_GroupSubstraction::execute() removeResults(0); } else { + // update the type of selection + updateGroupType(LIST_ID()); + GeomShapePtr aCompound = GeomAlgoAPI_CompoundBuilder::compound(aCut); aGroup->store(aCompound); setResult(aGroup);