diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2018-08-09 16:30:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-10 08:20:52 +0200 |
commit | 4e63c00f4dd5f8ac6496481e687c59209f9aee07 (patch) | |
tree | d43341c2cdef53fbbe4dd9103faa529d08cedd98 /sd/source/ui/func/fuscale.cxx | |
parent | 7fdd5a12f6d20422ebda1d3afd5e5146cadbe0e5 (diff) |
unnecessary null check before dynamic_cast, in sd
Change-Id: I91579ece17b85b1ae9926b7a05eb641672e8ecbd
Reviewed-on: https://gerrit.libreoffice.org/58772
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 )); |