]> OCCT Git - occt.git/commitdiff
0025650: Visualization - AIS_Line::ComputeSelection() should not ignore the selection...
authorsan <san@opencascade.com>
Wed, 24 Dec 2014 07:37:09 +0000 (10:37 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Jan 2015 11:01:47 +0000 (14:01 +0300)
Only selection mode 0 is supported from now on.

src/AIS/AIS_Line.cxx

index 335f2b5040c3c0ba97dd3050cf07a2acb1b810af..4045715446319c22766f578824766b55be59f2fb 100644 (file)
@@ -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);
+  }
 }