From 1a972d24c2f891d8ae3e3b8cfe324339d28602bc Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 31 Jan 2017 17:40:06 +0300 Subject: [PATCH] Issue #1897 Selection of edges in Group feature with SHIFT Key --- src/XGUI/XGUI_Displayer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)) { -- 2.39.2