TD: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 13:26:01 -05:00
parent cb21ac7bf8
commit c44ccc0ff2
10 changed files with 34 additions and 17 deletions

View File

@@ -194,8 +194,10 @@ TechDraw::DrawGeomHatch* ViewProviderGeomHatch::getViewObject() const
Gui::MDIView *ViewProviderGeomHatch::getMDIView() const
{
auto obj = getViewObject();
if(!obj) return nullptr;
if(!obj)
return nullptr;
auto vp = Gui::Application::Instance->getViewProvider(obj->getSourceView());
if(!vp) return nullptr;
if(!vp)
return nullptr;
return vp->getMDIView();
}