From 0c53340746abfee39be4726b8e8ce92bff171a05 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Fri, 17 May 2024 13:11:55 +0200 Subject: [PATCH] Sketcher: Fix distance arc helper : should appear only if constraining the edge. --- src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp index dcc8b65f91..3a4827273e 100644 --- a/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp +++ b/src/Mod/Sketcher/Gui/EditModeConstraintCoinManager.cpp @@ -944,12 +944,11 @@ Restart: } // Check if arc helpers are needed - if (Constr->Second != GeoEnum::GeoUndef - && Constr->SecondPos == Sketcher::PointPos::none) { + if (Constr->Second != GeoEnum::GeoUndef) { auto geo1 = geolistfacade.getGeometryFromGeoId(Constr->First); auto geo2 = geolistfacade.getGeometryFromGeoId(Constr->Second); - if (isArcOfCircle(*geo1)) { + if (isArcOfCircle(*geo1) && Constr->FirstPos == Sketcher::PointPos::none) { auto arc = static_cast(geo1); // NOLINT radius1 = arc->getRadius(); center1 = arc->getCenter(); @@ -976,7 +975,7 @@ Restart: numPoints++; } } - if (isArcOfCircle(*geo2)) { + if (isArcOfCircle(*geo2) && Constr->SecondPos == Sketcher::PointPos::none) { auto arc = static_cast(geo2); // NOLINT radius2 = arc->getRadius(); center2 = arc->getCenter();