summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls/zoomctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/stbctrls/zoomctrl.cxx')
-rw-r--r--svx/source/stbctrls/zoomctrl.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx
index bb019e4a4814..ace1cc1ffea7 100644
--- a/svx/source/stbctrls/zoomctrl.cxx
+++ b/svx/source/stbctrls/zoomctrl.cxx
@@ -141,8 +141,12 @@ void SvxZoomStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState,
void SvxZoomStatusBarControl::ImplUpdateItemText()
{
- OUString aStr(unicode::formatPercent(nZoom, Application::GetSettings().GetUILanguageTag()));
- GetStatusBar().SetItemText( GetId(), aStr );
+ // workaround - don't bother updating when we don't have a real zoom value
+ if (nZoom)
+ {
+ OUString aStr(unicode::formatPercent(nZoom, Application::GetSettings().GetUILanguageTag()));
+ GetStatusBar().SetItemText( GetId(), aStr );
+ }
}
void SvxZoomStatusBarControl::Paint( const UserDrawEvent& )