Merge pull request #27077 from amon-sha/fix_sketcher_autoscale_segfault
Sketcher: fix segfault during autoscale
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user