From 5efc44d56aba812e90beb9e37a98aa23ed71998f 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 {