From: ika Date: Thu, 11 Oct 2012 12:40:05 +0000 (+0400) Subject: 0023142: GccAna : suspicious else X-Git-Tag: V6_6_0_beta~241 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=33a085531a059c03c7a45bf060f5ff3898468c7b;p=occt.git 0023142: GccAna : suspicious else the else should be signe = +1 --- diff --git a/src/GccAna/GccAna_Circ2d2TanRad.cxx b/src/GccAna/GccAna_Circ2d2TanRad.cxx index 7a367d5245..c053689be1 100755 --- a/src/GccAna/GccAna_Circ2d2TanRad.cxx +++ b/src/GccAna/GccAna_Circ2d2TanRad.cxx @@ -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); // =================================