Skip to content

Commit

Permalink
[TD]fix parenting in Tree
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jan 15, 2020
1 parent e290e9c commit 8b2e318
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Mod/TechDraw/Gui/TaskLeaderLine.cpp
Expand Up @@ -304,6 +304,14 @@ void TaskLeaderLine::createLeaderFeature(std::vector<Base::Vector3d> converted)

Gui::Command::updateActive();
Gui::Command::commitCommand();

//trigger claimChildren in tree
if (m_baseFeat != nullptr) {
m_baseFeat->touch();
}
if (m_basePage != nullptr) {
m_basePage->touch();
}
m_lineFeat->requestPaint();
}

Expand Down
8 changes: 8 additions & 0 deletions src/Mod/TechDraw/Gui/TaskRichAnno.cpp
Expand Up @@ -311,6 +311,14 @@ void TaskRichAnno::createAnnoFeature()

Gui::Command::updateActive();
Gui::Command::commitCommand();

//trigger collectChildren in tree
if (m_baseFeat != nullptr) {
m_baseFeat->touch();
}
if (m_basePage != nullptr) {
m_basePage->touch();
}
m_annoFeat->requestPaint();
}

Expand Down

0 comments on commit 8b2e318

Please sign in to comment.