]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_SelectionMgr.cpp
Salome HOME
Issue #1037 : do not find model indices for the same result. If selection mode is...
[modules/shaper.git] / src / XGUI / XGUI_SelectionMgr.cpp
index 3f692ff25eec2f634c3676bb0c17dac6ae131983..8e614e30b0a0be71a9e36d1e1686b9f30a522e56 100755 (executable)
@@ -145,7 +145,8 @@ void XGUI_SelectionMgr::onViewerSelection()
     QList<ModuleBase_ViewerPrsPtr> aPresentations = selection()->getSelected(ModuleBase_ISelection::Viewer);
     foreach(ModuleBase_ViewerPrsPtr aPrs, aPresentations) {
       if (aPrs->object().get()) {
-        aFeatures.append(aPrs->object());
+        if (!aFeatures.contains(aPrs->object()))
+          aFeatures.append(aPrs->object());
         if (aPrs->shape().get()) {
           aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());
           if (aResult.get()) {