PartDesign: fix ViewProviderBody tip icon update

This commit is contained in:
Zheng, Lei
2019-09-04 10:33:20 +08:00
committed by wmayer
parent f8e1d455e0
commit e64b1a7826

View File

@@ -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);
}