Skip to content

Commit

Permalink
PartDesign: fix ViewProviderBody tip icon update
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Sep 7, 2019
1 parent f8e1d45 commit e64b1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/Gui/ViewProviderBody.cpp
Expand Up @@ -225,7 +225,7 @@ void ViewProviderBody::updateData(const App::Property* prop)

// restore icons
for (auto feature : features) {
Gui::ViewProvider* vp = Gui::Application::Instance->activeDocument()->getViewProvider(feature);
Gui::ViewProvider* vp = Gui::Application::Instance->getViewProvider(feature);
if (vp && vp->isDerivedFrom(PartDesignGui::ViewProvider::getClassTypeId())) {
static_cast<PartDesignGui::ViewProvider*>(vp)->setTipIcon(feature == tip);
}
Expand Down

0 comments on commit e64b1a7

Please sign in to comment.