summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 10:14:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 13:25:17 +0200
commit4b1d185de3cdab97805391a41c778cce9c5fce19 (patch)
tree3fc55de845d449c92902fc3c59c46eccf266bf53 /sw
parentba951a969d76fc5ea863bb19c24140bbf390694b (diff)
loplugin:singlevalfields in vcl
Change-Id: I159f94fba64acc0e0599b64be02c7864b1ed02c3 Reviewed-on: https://gerrit.libreoffice.org/61813 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/viewlayoutctrl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/viewlayoutctrl.cxx b/sw/source/uibase/utlui/viewlayoutctrl.cxx
index caca9733bc7a..eadb17f748f1 100644
--- a/sw/source/uibase/utlui/viewlayoutctrl.cxx
+++ b/sw/source/uibase/utlui/viewlayoutctrl.cxx
@@ -81,8 +81,7 @@ void SwViewLayoutControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState
mpImpl->mnState = 3;
}
- if ( GetStatusBar().AreItemsVisible() )
- GetStatusBar().SetItemData( GetId(), nullptr ); // force repaint
+ GetStatusBar().SetItemData( GetId(), nullptr ); // force repaint
}
void SwViewLayoutControl::Paint( const UserDrawEvent& rUsrEvt )