From 27b72398b1a31012ea9221ac4b6823bc0af0aa67 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Thu, 28 Mar 2024 11:58:33 +0100 Subject: [PATCH] Sketcher: Translate Fixes #13189 horizontal/vertical lost. --- src/Mod/Sketcher/Gui/DrawSketchHandlerTranslate.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerTranslate.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerTranslate.h index afa230c1ac..5c0d3cb07d 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerTranslate.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerTranslate.h @@ -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 {