Fix derived class calls wrong parent method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user