Skip to content

Commit

Permalink
[TD] add missing update when changing WeldSymbol parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
donovaly authored and WandererFan committed Jan 30, 2020
1 parent d3ee556 commit cc5e5f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Mod/TechDraw/Gui/ViewProviderWeld.cpp
Expand Up @@ -94,6 +94,16 @@ void ViewProviderWeld::updateData(const App::Property* prop)
ViewProviderDrawingView::updateData(prop);
}

void ViewProviderWeld::onChanged(const App::Property* p)
{
QGIView* qgiv = getQView();
if (qgiv) {
qgiv->updateView(true);
}

ViewProviderDrawingView::onChanged(p);
}

std::vector<App::DocumentObject*> ViewProviderWeld::claimChildren(void) const
{
// Collect any child Document Objects and put them in the right place in the Feature tree
Expand Down
1 change: 1 addition & 0 deletions src/Mod/TechDraw/Gui/ViewProviderWeld.h
Expand Up @@ -55,6 +55,7 @@ class TechDrawGuiExport ViewProviderWeld : public ViewProviderDrawingView
/// returns a list of all possible modes
virtual std::vector<std::string> getDisplayModes(void) const;
virtual void updateData(const App::Property*);
virtual void onChanged(const App::Property* p);
virtual std::vector<App::DocumentObject*> claimChildren(void) const;
virtual bool setEdit(int ModNum);
virtual void unsetEdit(int ModNum);
Expand Down

0 comments on commit cc5e5f9

Please sign in to comment.