From: nds Date: Mon, 31 Jul 2017 06:36:15 +0000 (+0300) Subject: Issue #2226 Selecting the feature partition in the object browser takes too much... X-Git-Tag: V_2.7.2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=372df8597465493217e13ef7d0fb2a51237aebb4;p=modules%2Fshaper.git Issue #2226 Selecting the feature partition in the object browser takes too much time Redisplay after each owner selection takes this time. --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 6c4865bf8..b735f2a51 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -1582,7 +1582,7 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th NCollection_Map aPresentations = theShapesToBeSelected.Find(aParameterShape); if (aPresentations.Contains(anOwnerPresentation)) { - theContext->AddOrRemoveSelected(anOwner); + theContext->AddOrRemoveSelected(anOwner, Standard_False); anOwner->SetSelected (Standard_True); // collect selected presentations to do not select them if compsolid is selected if (!aSelectedPresentations.Contains(anOwnerPresentation)) @@ -1607,6 +1607,6 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th for (; anIt.More(); anIt.Next()) { if (aSelectedPresentations.Contains(anIt.Value())) continue; - theContext->AddOrRemoveSelected(anIt.Value()); + theContext->AddOrRemoveSelected(anIt.Value(), Standard_False); } }