Salome HOME
updated copyright message
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_GroupSubstraction.cpp
index 18f0acad5f5e1ac63a8ad231f56059fd9fb0bcf2..46056805da8ad14dcc1d66b1af33b10d39820016 100644 (file)
@@ -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 <GeomAlgoAPI_CompoundBuilder.h>
 #include <GeomAlgoAPI_ShapeTools.h>
 
-typedef std::set<GeomShapePtr, GeomAPI_Shape::ComparatorWithOri> SetOfShape;
+typedef std::set<GeomShapePtr, GeomAPI_Shape::Comparator> 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);