From: mpv Date: Tue, 15 Sep 2015 13:55:57 +0000 (+0300) Subject: Roll back the improvement for third arc point coordinates input in property panel... X-Git-Tag: V_1.4.0~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=228f9ccbfa65318ff8a636235448d07ed3a4c644;p=modules%2Fshaper.git Roll back the improvement for third arc point coordinates input in property panel because of issue #985 --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 9de0fc49b..f8042bada 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -259,6 +259,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) std::shared_ptr aProjection = aCircleForArc->project(anEndAttr->pnt()); if (aProjection && anEndAttr->pnt()->distance(aProjection) > tolerance) { // issue #855: trying to update only not-updated coordinate if it is possible + /* if (abs(myXEndBefore - anEndAttr->x()) < 1.e-10) { // keep Y unchanged double aVy = aCenterAttr->y() - anEndAttr->y(); double aVy2 = aVy * aVy; @@ -283,7 +284,7 @@ void SketchPlugin_Arc::attributeChanged(const std::string& theID) aProjection->setY(aCenterAttr->y() - aDY); aProjection->setX(anEndAttr->x()); } - } + }*/ anEndAttr->setValue(aProjection); }