Fix derived class calls wrong parent method

This commit is contained in:
wandererfan
2019-03-06 15:24:03 -05:00
committed by wmayer
parent 7b5458b7fa
commit b5c3ca2087
5 changed files with 10 additions and 10 deletions

View File

@@ -68,13 +68,13 @@ void ViewProviderProjGroupItem::attach(App::DocumentObject *pcFeat)
void ViewProviderProjGroupItem::setDisplayMode(const char* ModeName)
{
ViewProviderDocumentObject::setDisplayMode(ModeName);
ViewProviderViewPart::setDisplayMode(ModeName);
}
std::vector<std::string> ViewProviderProjGroupItem::getDisplayModes(void) const
{
// get the modes of the father
std::vector<std::string> StrList = ViewProviderDocumentObject::getDisplayModes();
std::vector<std::string> StrList = ViewProviderViewPart::getDisplayModes();
StrList.push_back("Drawing");
return StrList;
}