From: mpv Date: Tue, 17 Nov 2015 08:06:18 +0000 (+0300) Subject: Fix for the issue #1087 X-Git-Tag: V_2.0.0_alfa2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe4878250d17cfe4407bb8b10310da1626c03e1c;p=modules%2Fshaper.git Fix for the issue #1087 --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 07e9b1a78..17555b3d4 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -273,7 +273,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) std::shared_ptr aProjection = aCircleForArc->project(anEndAttr->pnt()); if (aProjection && anEndAttr->pnt()->distance(aProjection) > tolerance) { if (!isStable()) { // issue #855: trying to update only not-updated coordinate if it is possible - if (abs(myXEndBefore - anEndAttr->x()) < 1.e-10) { // keep Y unchanged + if (fabs(myXEndBefore - anEndAttr->x()) < 1.e-10) { // keep Y unchanged double aVy = aCenterAttr->y() - anEndAttr->y(); double aVy2 = aVy * aVy; double aR2 = aCircleForArc->radius() * aCircleForArc->radius(); @@ -285,7 +285,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) aProjection->setX(aCenterAttr->x() - aDX); aProjection->setY(anEndAttr->y()); } - } else if (abs(myYEndBefore - anEndAttr->y()) < 1.e-10) { // keep X unchanged + } else if (fabs(myYEndBefore - anEndAttr->y()) < 1.e-10) { // keep X unchanged double aVx = aCenterAttr->x() - anEndAttr->x(); double aVx2 = aVx * aVx; double aR2 = aCircleForArc->radius() * aCircleForArc->radius();