diff options
Diffstat (limited to 'sd/source/ui/func/fuscale.cxx')
-rw-r--r-- | sd/source/ui/func/fuscale.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/func/fuscale.cxx b/sd/source/ui/func/fuscale.cxx index 49b0cff83f8f..9a486d488d39 100644 --- a/sd/source/ui/func/fuscale.cxx +++ b/sd/source/ui/func/fuscale.cxx @@ -75,7 +75,7 @@ void FuScale::DoExecute( SfxRequest& rReq ) nValue = static_cast<sal_Int16>(mpWindow->GetZoom()); // zoom on page size? - if( mpViewShell && dynamic_cast< DrawViewShell *>( mpViewShell ) != nullptr && + if( dynamic_cast< DrawViewShell *>( mpViewShell ) && static_cast<DrawViewShell*>(mpViewShell)->IsZoomOnPage() ) { pZoomItem.reset(new SvxZoomItem( SvxZoomType::WHOLEPAGE, nValue )); |