Merge pull request #27077 from amon-sha/fix_sketcher_autoscale_segfault

Sketcher: fix segfault during autoscale
This commit is contained in:
Amon Sha
2026-01-23 16:18:25 +02:00
committed by GitHub
parent 14aca4f9f2
commit 6a0d59b0c1

View File

@@ -536,6 +536,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;