From 95043e58ea3f518d8c18dc496c20c4e867aae79e Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Tue, 26 Jan 2016 00:39:19 +0300 Subject: [PATCH] Sketcher: Hyperbola: fix minor diameter ends swapping Quick and dirty, but seems to work. --- src/Mod/Sketcher/App/planegcs/GCS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/App/planegcs/GCS.cpp b/src/Mod/Sketcher/App/planegcs/GCS.cpp index c13897a0f2..312830ec71 100644 --- a/src/Mod/Sketcher/App/planegcs/GCS.cpp +++ b/src/Mod/Sketcher/App/planegcs/GCS.cpp @@ -962,7 +962,7 @@ int System::addConstraintInternalAlignmentHyperbolaMinorDiameter(Hyperbola &e, P Y_c)*(-pow(b, 2) + pow(X_F1 - X_c, 2) + pow(Y_F1 - Y_c, 2))/sqrt(pow(X_F1 - X_c, 2) + pow(Y_F1 - Y_c, 2)), 2); - if(closertopositiveminor>0){ + if(closertopositiveminor<0){ addConstraintInternalAlignmentPoint2Hyperbola(e,p2,HyperbolaPositiveMinorX,tagId); addConstraintInternalAlignmentPoint2Hyperbola(e,p2,HyperbolaPositiveMinorY,tagId); addConstraintInternalAlignmentPoint2Hyperbola(e,p1,HyperbolaNegativeMinorX,tagId);