From 3918d7ffae387d4cd0b6ccf845d863564744fd02 Mon Sep 17 00:00:00 2001 From: Matthias Danner <28687794+matthiasdanner@users.noreply.github.com> Date: Tue, 5 Aug 2025 20:12:03 +0200 Subject: [PATCH] Fix drawing of angle constraints beyond the centerpoint and for negative angles --- src/Gui/SoDatumLabel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/SoDatumLabel.cpp b/src/Gui/SoDatumLabel.cpp index 4016f0872f..aaa41ac602 100644 --- a/src/Gui/SoDatumLabel.cpp +++ b/src/Gui/SoDatumLabel.cpp @@ -1692,8 +1692,9 @@ SoDatumLabel::AngleGeometry SoDatumLabel::calculateAngleGeometry(const SbVec3f* geom.v1 = SbVec3f(cos(geom.startangle), sin(geom.startangle), 0); geom.v2 = SbVec3f(cos(geom.endangle), sin(geom.endangle), 0); - if (geom.range < 0) { + if (geom.range < 0 || geom.length < 0) { std::swap(geom.v1, geom.v2); + geom.textMargin = -geom.textMargin; } geom.pnt1 = geom.p0 + (geom.r - geom.endLineLength1) * geom.v1;