summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/view.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 346ea88400f3..a95376d75864 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1707,14 +1707,10 @@ void SmViewShell::Execute(SfxRequest& rReq)
SfxItemSet aSet( SmDocShell::GetPool(), svl::Items<SID_ATTR_ZOOM, SID_ATTR_ZOOM>{});
aSet.Put( SvxZoomItem( SvxZoomType::PERCENT, mpGraphic->GetZoom()));
SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
- if(pFact)
- {
- ScopedVclPtr<AbstractSvxZoomDialog> xDlg(pFact->CreateSvxZoomDialog(GetViewFrame()->GetWindow().GetFrameWeld(), aSet));
- assert(xDlg);
- xDlg->SetLimits( MINZOOM, MAXZOOM );
- if (xDlg->Execute() != RET_CANCEL)
- ZoomByItemSet(xDlg->GetOutputItemSet());
- }
+ ScopedVclPtr<AbstractSvxZoomDialog> xDlg(pFact->CreateSvxZoomDialog(GetViewFrame()->GetWindow().GetFrameWeld(), aSet));
+ xDlg->SetLimits( MINZOOM, MAXZOOM );
+ if (xDlg->Execute() != RET_CANCEL)
+ ZoomByItemSet(xDlg->GetOutputItemSet());
}
}
}