From 1d43a4bb1d94b33eaa020ce6fb90a73af393d310 Mon Sep 17 00:00:00 2001 From: johndoe2323 <121433106+johndoe2323@users.noreply.github.com> Date: Sun, 5 Oct 2025 17:32:26 +0200 Subject: [PATCH] fix for #18165 calculation changed to incorporate scale for distanceDim.X and distanceDim.Y --- src/Mod/TechDraw/TechDrawTools/CommandAxoLengthDimension.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/TechDraw/TechDrawTools/CommandAxoLengthDimension.py b/src/Mod/TechDraw/TechDrawTools/CommandAxoLengthDimension.py index a22063a6e0..23a17689e0 100644 --- a/src/Mod/TechDraw/TechDrawTools/CommandAxoLengthDimension.py +++ b/src/Mod/TechDraw/TechDrawTools/CommandAxoLengthDimension.py @@ -92,8 +92,8 @@ class CommandAxoLengthDimension: distanceDim.AngleOverride = True distanceDim.LineAngle = lineAngle distanceDim.ExtensionAngle = extAngle - distanceDim.X = (vertexes[0].Point.x+vertexes[1].Point.x)/2 - distanceDim.Y = (vertexes[0].Point.y+vertexes[1].Point.y)/2 + distanceDim.X = scale*(vertexes[0].Point.x+vertexes[1].Point.x)/2 + distanceDim.Y = scale*(vertexes[0].Point.y+vertexes[1].Point.y)/2 distanceDim.recompute() (px,py,pz) = Utils.getCoordinateVectors(view)