diff options
Diffstat (limited to 'sd/source/ui/func/fuscale.cxx')
-rw-r--r-- | sd/source/ui/func/fuscale.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 2c2db012d629..4c54f95d27b7 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -77,7 +77,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) nValue = (sal_Int16) mpWindow->GetZoom(); // zoom on page size? - if( mpViewShell && mpViewShell->ISA( DrawViewShell ) && + if( mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr && static_cast<DrawViewShell*>(mpViewShell)->IsZoomOnPage() ) { pZoomItem.reset(new SvxZoomItem( SvxZoomType::WHOLEPAGE, nValue )); @@ -90,7 +90,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) // limit range if( mpViewShell ) { - if( mpViewShell->ISA( DrawViewShell ) ) + if( dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr ) { SdrPageView* pPageView = mpView->GetSdrPageView(); if( ( pPageView && pPageView->GetObjList()->GetObjCount() == 0 ) ) @@ -99,7 +99,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) nZoomValues &= ~SvxZoomEnableFlags::OPTIMAL; } } - else if( mpViewShell->ISA( OutlineViewShell ) ) + else if( dynamic_cast< OutlineViewShell *>( mpViewShell ) != nullptr ) { nZoomValues &= ~SvxZoomEnableFlags::OPTIMAL; nZoomValues &= ~SvxZoomEnableFlags::WHOLEPAGE; @@ -156,7 +156,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) case SvxZoomType::OPTIMAL: { - if( mpViewShell->ISA( DrawViewShell ) ) + if( dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr ) { // name confusion: SID_SIZE_ALL -> zoom onto all objects // --> the program offers it as optimal |