From 951edf3ec482befc780aa6318d5851901ea67525 Mon Sep 17 00:00:00 2001 From: Paddle Date: Tue, 10 Oct 2023 08:58:19 +0200 Subject: [PATCH] Fix typo making Sketcher_Dimension fails for angles. --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 5af9471ab0..9eef58d5ae 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -2266,13 +2266,13 @@ protected: Sketcher::PointPos PosId2 = Sketcher::PointPos::none; double ActAngle; - if (calculateAngle(Obj, GeoId1, GeoId2, PosId1, PosId2, ActAngle)) { + if (!calculateAngle(Obj, GeoId1, GeoId2, PosId1, PosId2, ActAngle)) { return; } if (ActAngle == 0.0) { - //Here we are sure that GeoIds are lines. So false means that lines are parallel, we change to distance + //Here we are sure that GeoIds are lines. So 0.0 means that lines are parallel, we change to distance restartCommand(QT_TRANSLATE_NOOP("Command", "Add Distance constraint")); createDistanceConstrain(selLine[1].GeoId, Sketcher::PointPos::start, selLine[0].GeoId, selLine[0].PosId, onSketchPos); return;