From 5e0165bc4aaa7fe2f49eaa18170eff59681837ee Mon Sep 17 00:00:00 2001 From: wandererfan Date: Tue, 12 May 2020 19:43:15 -0400 Subject: [PATCH] [TD]Fix wrong scale in Section --- src/Mod/TechDraw/App/DrawViewSection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawViewSection.cpp b/src/Mod/TechDraw/App/DrawViewSection.cpp index 339ad2ecc1..3d2bb16efa 100644 --- a/src/Mod/TechDraw/App/DrawViewSection.cpp +++ b/src/Mod/TechDraw/App/DrawViewSection.cpp @@ -699,10 +699,10 @@ std::pair DrawViewSection::sectionLineEnds(void) auto bbx = getBaseDVP()->getBoundingBox(); double xRange = bbx.MaxX - bbx.MinX; - xRange /= getScale(); + xRange /= getBaseDVP()->getScale(); double yRange = bbx.MaxY - bbx.MinY; - yRange /= getScale(); - result = DrawUtil::boxIntersect2d(sOrgOnBase, sLineOnBase, xRange, yRange); + yRange /= getBaseDVP()->getScale(); + result = DrawUtil::boxIntersect2d(sOrgOnBase, sLineOnBase, xRange, yRange); //unscaled return result; }