summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/zoomctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/utlui/zoomctrl.cxx')
-rw-r--r--sw/source/uibase/utlui/zoomctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/zoomctrl.cxx b/sw/source/uibase/utlui/zoomctrl.cxx
index e4990cc9fcd7..5da5c9cd4664 100644
--- a/sw/source/uibase/utlui/zoomctrl.cxx
+++ b/sw/source/uibase/utlui/zoomctrl.cxx
@@ -43,7 +43,7 @@ SwZoomControl::~SwZoomControl()
void SwZoomControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
const SfxPoolItem* pState )
{
- if(SfxItemState::DEFAULT == eState && pState->ISA( SfxStringItem ))
+ if(SfxItemState::DEFAULT == eState && dynamic_cast< const SfxStringItem *>( pState ) != nullptr)
{
sPreviewZoom = static_cast<const SfxStringItem*>(pState)->GetValue();
GetStatusBar().SetItemText( GetId(), sPreviewZoom );