Salome HOME
updated copyright message
[modules/shaper.git] / src / XGUI / XGUI_Workshop.cpp
index edc1d5e504540fee7b4e958cddb3b9404801ae39..da0ce1dd5fad3a9c436f6bbe7ca16830935ee1e2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -2414,7 +2414,7 @@ bool XGUI_Workshop::canMoveFeature()
 
   QObjectPtrList anObjects = mySelector->selection()->selectedObjects();
   QObjectPtrList aValidatedObjects;
-  std::list<FeaturePtr> aSelectedFeatures;
+  std::set<FeaturePtr> aSelectedFeatures;
   foreach (ObjectPtr anObject, anObjects) {
     if (!myModule->canApplyAction(anObject, anActionId))
       continue;
@@ -2423,7 +2423,7 @@ bool XGUI_Workshop::canMoveFeature()
       continue;
     aValidatedObjects.append(anObject);
     FeaturePtr aFeat = std::dynamic_pointer_cast<ModelAPI_Feature>(anObject);
-    aSelectedFeatures.push_back(aFeat);
+    aSelectedFeatures.insert(aFeat);
   }
   if (aValidatedObjects.size() != anObjects.size())
     anObjects = aValidatedObjects;