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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user