declare getMDIView and getMDIViewPage as const
This commit is contained in:
@@ -123,7 +123,8 @@ TechDraw::DrawHatch* ViewProviderHatch::getViewObject() const
|
||||
return dynamic_cast<TechDraw::DrawHatch*>(pcObject);
|
||||
}
|
||||
|
||||
Gui::MDIView *ViewProviderHatch::getMDIView() {
|
||||
Gui::MDIView *ViewProviderHatch::getMDIView() const
|
||||
{
|
||||
auto obj = getViewObject();
|
||||
if(!obj) return 0;
|
||||
auto vp = Gui::Application::Instance->getViewProvider(obj->getSourceView());
|
||||
|
||||
Reference in New Issue
Block a user