Sketcher: Translate Fixes #13189 horizontal/vertical lost.

This commit is contained in:
PaddleStroke
2024-03-28 11:58:33 +01:00
committed by Chris Hennes
parent 11bed3b8da
commit 27b72398b1

View File

@@ -374,6 +374,7 @@ private:
|| cstr->Type == Symmetric || cstr->Type == Perpendicular
|| cstr->Type == Parallel || cstr->Type == Equal
|| cstr->Type == Angle || cstr->Type == PointOnObject
|| cstr->Type == Horizontal || cstr->Type == Vertical
|| cstr->Type == InternalAlignment)
&& firstIndex >= 0 && secondIndex >= 0
&& thirdIndex == GeoEnum::GeoUndef) {
@@ -408,7 +409,9 @@ private:
newConstr->Second = secondIndexi;
}
}
else if ((cstr->Type == Block) && firstIndex >= 0) {
else if ((cstr->Type == Block || cstr->Type == Horizontal
|| cstr->Type == Vertical)
&& firstIndex >= 0) {
newConstr->First = firstIndexi;
}
else {