Merge pull request #27077 from amon-sha/fix_sketcher_autoscale_segfault

Sketcher: fix segfault during autoscale
(cherry picked from commit 6a0d59b0c1)
This commit is contained in:
Amon Sha
2026-01-23 17:32:01 +01:00
committed by Max Wilfinger
parent 7896d33d77
commit 202edb75d7
@@ -534,6 +534,10 @@ private:
newConstr->First = firstIndex;
newConstr->Second = secondIndex;
}
else if (cstr->Type == Angle && firstIndex != GeoEnum::GeoUndef
&& secondIndex == GeoEnum::GeoUndef && thirdIndex == GeoEnum::GeoUndef) {
newConstr->First = firstIndex;
}
else if ((cstr->Type == Radius || cstr->Type == Diameter)
&& firstIndex != GeoEnum::GeoUndef) {
newConstr->First = firstIndex;