From 74737f71fddd11900cefc77f056e3a525f8f3c7b Mon Sep 17 00:00:00 2001 From: wandererfan Date: Wed, 29 May 2019 16:33:58 -0400 Subject: [PATCH] Fix "tick" arrow style in directional mode --- src/Mod/TechDraw/Gui/QGIArrow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/Gui/QGIArrow.cpp b/src/Mod/TechDraw/Gui/QGIArrow.cpp index f52377f376..dd7ed0e792 100644 --- a/src/Mod/TechDraw/Gui/QGIArrow.cpp +++ b/src/Mod/TechDraw/Gui/QGIArrow.cpp @@ -191,10 +191,12 @@ QPainterPath QGIArrow::makeHashMark(Base::Vector3d dir, double length, double wi { double adjWidth = 1.0; Base::Vector3d negDir = -dir; + Base::Vector3d normDir = dir; negDir.Normalize(); + normDir.Normalize(); Base::Vector3d perp(-negDir.y,negDir.x, 0.0); Base::Vector3d barb1 = negDir * length - perp * (adjWidth * width); - Base::Vector3d barb2 = dir * length + perp * (adjWidth * width); + Base::Vector3d barb2 = normDir * length + perp * (adjWidth * width); QPainterPath path; path.moveTo(QPointF(Rez::guiX(barb1.x),Rez::guiX(barb1.y)));