From cdf0097dec0e4bb9153998772db3eae4178a422c Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Thu, 24 Jul 2025 22:44:43 -0500 Subject: [PATCH] Sketcher: Fix increment of parabola constraint tag It is an invisible and unstated assumption of the redundant-constraint removal code that the "tag" of a constraint can be used as the index into the SketchObject's Constraint list. This is true for all objects except a parabola, which, when creating its internal alignment focus constraints, incremented the ConstraintCounter for *each* of the internal constraints, instead of only once. --- src/Mod/Sketcher/App/Sketch.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index 7120cd2fad..aa8eca5032 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -4162,8 +4162,6 @@ int Sketch::addInternalAlignmentParabolaFocalDistance(int geoId1, int geoId2) int tag = ++ConstraintsCounter; GCSsys.addConstraintP2PCoincident(p1, vertexpoint, tag); - - tag = ++ConstraintsCounter; GCSsys.addConstraintP2PCoincident(p2, focuspoint, tag); return ConstraintsCounter;