From 547c97fc798bde59bd66a7fa54681b1bc80f3d00 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Fri, 12 Sep 2025 18:20:43 +0200 Subject: [PATCH] Sketcher: Fix arc double click bug (#23873) --- src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h index e5e3319735..710f792e17 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h @@ -398,6 +398,9 @@ private: // Prevent validation of null arc. return false; } + if (state() == SelectMode::SeekThird && fabs(arcAngle) < Precision::Confusion()) { + return false; + } return true; } @@ -892,12 +895,6 @@ void DSHArcController::addConstraints() } } else { // Valid diagnosis. Must check which constraints may be added. - - // if no curve exists a crash occurs #12755 - if (firstCurve < 0) { - return; - } - auto startpointinfo = handler->getPointInfo(GeoElementId(firstCurve, pos1)); if (x0set && startpointinfo.isXDoF()) {