X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_SelectionMgr.cpp;h=df975ca9578ec657acc5aff23c8213248225ff67;hb=1a972d24c2f891d8ae3e3b8cfe324339d28602bc;hp=059f3e2a19f27ea575d8cbde260ed8d69e606232;hpb=2b0ecd53dc39ea7c1c4e03a432490e515e1a0ce1;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_SelectionMgr.cpp b/src/XGUI/XGUI_SelectionMgr.cpp index 059f3e2a1..df975ca95 100755 --- a/src/XGUI/XGUI_SelectionMgr.cpp +++ b/src/XGUI/XGUI_SelectionMgr.cpp @@ -27,7 +27,7 @@ #include #ifdef VINSPECTOR -#include +#include #endif XGUI_SelectionMgr::XGUI_SelectionMgr(XGUI_Workshop* theParent) @@ -56,9 +56,6 @@ void XGUI_SelectionMgr::connectViewers() void XGUI_SelectionMgr::setSelectedOwners(const SelectMgr_IndexedMapOfOwner& theSelectedOwners, bool isUpdateViewer) { - SelectMgr_IndexedMapOfOwner aSelectedOwners; - selection()->selectedOwners(aSelectedOwners); - Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext(); if (!aContext.IsNull()) { /// previous selection should be cleared, else there will be decomposition of selections: @@ -67,8 +64,6 @@ void XGUI_SelectionMgr::setSelectedOwners(const SelectMgr_IndexedMapOfOwner& the for (Standard_Integer i = 1, n = theSelectedOwners.Extent(); i <= n; i++) { Handle(SelectMgr_EntityOwner) anOwner = theSelectedOwners(i); - if (aSelectedOwners.FindIndex(anOwner) > 0) - continue; aContext->AddOrRemoveSelected(anOwner, isUpdateViewer); #ifdef VINSPECTOR