Navigation Menu

Skip to content

Commit

Permalink
Fix regression in LeaderLine initial position
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed May 19, 2019
1 parent b17a784 commit 8ef3f13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/TechDraw/Gui/TaskLeaderLine.cpp
Expand Up @@ -247,6 +247,7 @@ void TaskLeaderLine::createLeaderFeature(std::vector<Base::Vector3d> converted)
}
if (obj->isDerivedFrom(TechDraw::DrawLeaderLine::getClassTypeId())) {
m_lineFeat = static_cast<TechDraw::DrawLeaderLine*>(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()) {
Expand All @@ -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<QColor>(ui->cpLineColor->color());
Expand Down

0 comments on commit 8ef3f13

Please sign in to comment.