diff options
Diffstat (limited to 'sc/source/ui/view/tabvwsh3.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsh3.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/ui/view/tabvwsh3.cxx b/sc/source/ui/view/tabvwsh3.cxx index 4c9fae9e1a11..1248d4e5576c 100644 --- a/sc/source/ui/view/tabvwsh3.cxx +++ b/sc/source/ui/view/tabvwsh3.cxx @@ -698,8 +698,7 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) if ( pReqArgs ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pReqArgs->Get(SID_ATTR_ZOOM)); + const SvxZoomItem& rZoomItem = pReqArgs->Get(SID_ATTR_ZOOM); eNewZoomType = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); @@ -739,9 +738,8 @@ void ScTabViewShell::Execute( SfxRequest& rReq ) // so no need to check again pDlg if ( !bCancel ) { - const SvxZoomItem& rZoomItem = static_cast<const SvxZoomItem&>( - pDlg->GetOutputItemSet()-> - Get( SID_ATTR_ZOOM )); + const SvxZoomItem& rZoomItem = pDlg->GetOutputItemSet()-> + Get( SID_ATTR_ZOOM ); eNewZoomType = rZoomItem.GetType(); nZoom = rZoomItem.GetValue(); |