0023142: GccAna : suspicious else
authorika <ika@opencascade.com>
Thu, 11 Oct 2012 12:40:05 +0000 (16:40 +0400)
committerika <ika@opencascade.com>
Thu, 15 Nov 2012 08:49:32 +0000 (12:49 +0400)
the else should be signe = +1

src/GccAna/GccAna_Circ2d2TanRad.cxx

index 7a367d5..c053689 100755 (executable)
@@ -471,8 +471,8 @@ GccAna_Circ2d2TanRad::
            WellDone = Standard_True;
            NbrSol = 1;
            if (R1 < R2) { signe = -1; }
-          else { signe = -1; }
-          gp_Ax2d axe(gp_Pnt2d(center1.XY()-(Radius+R1)*dir1.XY()),
+          else { signe = 1; }
+          gp_Ax2d axe(gp_Pnt2d(center1.XY()+signe*(Radius+R1)*dir1.XY()),
                       dirx);
           cirsol(1) = gp_Circ2d(axe,Radius);
 //         =================================