]> OCCT Git - occt-copy.git/commitdiff
Minor correction.
authorjgv <jgv@opencascade.com>
Wed, 7 Oct 2015 10:03:11 +0000 (13:03 +0300)
committermkv <mkv@opencascade.com>
Wed, 7 Oct 2015 11:04:54 +0000 (14:04 +0300)
src/IntWalk/IntWalk_IWalking_5.gxx

index add2bca0c63bedd10cbc1bf914487a0bc0221b4b..8ced2d2c199a22943be091ac6dc16e00fba5f93c 100644 (file)
@@ -121,8 +121,8 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
     if (CurNbPoints == 1 && Status == IntWalk_OK &&
         !ArretAjout && !OnPrevTangency)
     {
-      tolerance(1) = Du/2.;
-      tolerance(2) = Dv/2.;
+      tolerance(1) = Abs(Du)/2.;
+      tolerance(2) = Abs(Dv)/2.;
       if (tolerance(1) <= gp::Resolution())
         tolerance(1) = tolerance(2);
       if (tolerance(2) <= gp::Resolution())