From: nds Date: Tue, 31 Jan 2017 14:40:06 +0000 (+0300) Subject: Issue #1897 Selection of edges in Group feature with SHIFT Key X-Git-Tag: V_2.7.0~298 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1a972d24c2f891d8ae3e3b8cfe324339d28602bc;p=modules%2Fshaper.git Issue #1897 Selection of edges in Group feature with SHIFT Key --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 506ae75d6..e38dc3dc3 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -1585,17 +1585,17 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th if (aShape.IsNull()) continue; - NCollection_DataMap >::Iterator aShapeIt(theShapesToBeSelected); + NCollection_DataMap > + ::Iterator aShapeIt(theShapesToBeSelected); for (; aShapeIt.More(); aShapeIt.Next()) { if (aShapeIt.Key().IsSame(aShape)) { const TopoDS_Shape& aParameterShape = aShapeIt.Key(); // isSame should be used here as it does not check orientation of shapes - // despite on isEqual of shapes or IsBound for shape in QMap - // orientation is different for Edges shapes in model and owner even if this is one shape + // despite on isEqual of shapes or IsBound for shape in QMap. Orientation is + // different for Edges shapes in model shape and owner even if this is the same shape if (aParameterShape.IsSame(aShape)) { Handle(AIS_InteractiveObject) anOwnerPresentation = - Handle(AIS_InteractiveObject)::DownCast(anOwner->Selectable()); + Handle(AIS_InteractiveObject)::DownCast(anOwner->Selectable()); NCollection_Map aPresentations = theShapesToBeSelected.Find(aParameterShape); if (aPresentations.Contains(anOwnerPresentation)) {