From: dbv Date: Fri, 16 Oct 2015 14:04:28 +0000 (+0300) Subject: Bug #1036: Arc direction is not flexible on the right X-Git-Tag: V_2.0.0_alfa1~80 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25fa530187db0a4f9f5662b3bb064853846d76ed;p=modules%2Fshaper.git Bug #1036: Arc direction is not flexible on the right --- diff --git a/src/SketchPlugin/SketchPlugin_Arc.cpp b/src/SketchPlugin/SketchPlugin_Arc.cpp index 8f51fe28f..22898f95e 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.cpp +++ b/src/SketchPlugin/SketchPlugin_Arc.cpp @@ -118,11 +118,11 @@ void SketchPlugin_Arc::execute() std::shared_ptr aCirc(new GeomAPI_Circ(anAx2, aCenter->distance(aStartPoint))); double aParameterNew = 0.0; if(aCirc->parameter(aEndPoint, paramTolerance, aParameterNew)) { - if(0 < myParamBefore && myParamBefore <= PI / 2.0 - && PI * 1.5 < aParameterNew && aParameterNew <= PI * 2.0) { + if(0 <= myParamBefore && myParamBefore <= PI / 2.0 + && PI * 1.5 <= aParameterNew && aParameterNew <= PI * 2.0) { isInversed->setValue(true); - } else if(PI * 1.5 < myParamBefore && myParamBefore <= PI * 2.0 - && 0 < aParameterNew && aParameterNew <= PI / 2.0) { + } else if(PI * 1.5 <= myParamBefore && myParamBefore <= PI * 2.0 + && 0 <= aParameterNew && aParameterNew <= PI / 2.0) { isInversed->setValue(false); } }