From: san Date: Wed, 24 Dec 2014 07:37:09 +0000 (+0300) Subject: 0025650: Visualization - AIS_Line::ComputeSelection() should not ignore the selection... X-Git-Tag: V6_9_0_beta~204 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=270675f51e0e66bde289de9502c05379c5f880f3;p=occt.git 0025650: Visualization - AIS_Line::ComputeSelection() should not ignore the selection mode argument Only selection mode 0 is supported from now on. --- 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); + } }