From 8ef3f13fbbec8cf8217fafada56187617425edb2 Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sun, 19 May 2019 08:54:15 -0400 Subject: [PATCH] Fix regression in LeaderLine initial position --- src/Mod/TechDraw/Gui/TaskLeaderLine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/Gui/TaskLeaderLine.cpp b/src/Mod/TechDraw/Gui/TaskLeaderLine.cpp index 6bdbe4e748e0..95dd178ff152 100644 --- a/src/Mod/TechDraw/Gui/TaskLeaderLine.cpp +++ b/src/Mod/TechDraw/Gui/TaskLeaderLine.cpp @@ -247,6 +247,7 @@ void TaskLeaderLine::createLeaderFeature(std::vector converted) } if (obj->isDerivedFrom(TechDraw::DrawLeaderLine::getClassTypeId())) { m_lineFeat = static_cast(obj); + m_lineFeat->setPosition(Rez::appX(m_attachPoint.x),Rez::appX(- m_attachPoint.y), true); if (!converted.empty()) { m_lineFeat->WayPoints.setValues(converted); if (m_lineFeat->AutoHorizontal.getValue()) { @@ -265,7 +266,7 @@ void TaskLeaderLine::updateLeaderFeature(void) { // Base::Console().Message("TTL::updateLeaderFeature(%d)\n",converted.size()); Gui::Command::openCommand("Edit Leader"); - //waypoints & x,y are updated by QGILeaderLine + //waypoints & x,y are updated by QGILeaderLine (for edits only!) commonFeatureUpdate(); App::Color ac; ac.setValue(ui->cpLineColor->color());