Salome HOME
Improvement for key "Delete" processing: should be done only on possible objects...
[modules/shaper.git] / src / XGUI / XGUI_Selection.cpp
index eb59cf8c8274cdcc3cd2044754da17d06412c4a8..6642e5436baa8ba2b6dd8a17a63aae80bc3178dd 100644 (file)
@@ -174,6 +174,7 @@ void XGUI_Selection::fillPresentation(ModuleBase_ViewerPrsPtr& thePrs,
         if (aAx.get()) {
           thePrs->setObject(aAx);
           thePrs->setShape(aAx->shape());
+          return;
         }
       }
     } else {
@@ -191,6 +192,7 @@ void XGUI_Selection::fillPresentation(ModuleBase_ViewerPrsPtr& thePrs,
         if (aOrigin.get()) {
           thePrs->setObject(aOrigin);
           thePrs->setShape(aOrigin->shape());
+          return;
         }
       }
     }