Salome HOME
Bug #1036: Arc direction is not flexible on the right
authordbv <dbv@opencascade.com>
Fri, 16 Oct 2015 14:04:28 +0000 (17:04 +0300)
committerdbv <dbv@opencascade.com>
Fri, 16 Oct 2015 14:04:51 +0000 (17:04 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp

index 8f51fe28f8aab0823dd0b6ab572fab04b88eade8..22898f95ee77310535f117643b59137e85b2299d 100644 (file)
@@ -118,11 +118,11 @@ void SketchPlugin_Arc::execute()
     std::shared_ptr<GeomAPI_Circ> 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);
       }
     }