From 270675f51e0e66bde289de9502c05379c5f880f3 Mon Sep 17 00:00:00 2001 From: san Date: Wed, 24 Dec 2014 10:37:09 +0300 Subject: [PATCH] 0025650: Visualization - AIS_Line::ComputeSelection() should not ignore the selection mode argument Only selection mode 0 is supported from now on. --- src/AIS/AIS_Line.cxx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/AIS/AIS_Line.cxx b/src/AIS/AIS_Line.cxx index 335f2b5040..4045715446 100644 --- a/src/AIS/AIS_Line.cxx +++ b/src/AIS/AIS_Line.cxx @@ -135,13 +135,21 @@ void AIS_Line::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(G //purpose : //======================================================================= -void AIS_Line::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection, - const Standard_Integer) +void AIS_Line::ComputeSelection(const Handle(SelectMgr_Selection)& theSelection, + const Standard_Integer theMode) { + // Do not support selection modes different from 0 currently + if (theMode) + return; - if (!myLineIsSegment) ComputeInfiniteLineSelection(aSelection); - else ComputeSegmentLineSelection(aSelection); - + if (!myLineIsSegment) + { + ComputeInfiniteLineSelection(theSelection); + } + else + { + ComputeSegmentLineSelection(theSelection); + } } -- 2.39.5