[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 4 00:21:41 UTC 2021
sw/source/uibase/utlui/wordcountctrl.cxx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 75175049972239cfceab15c7b756fe0a2c4059be
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Sun Feb 28 20:42:53 2021 -0900
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Thu Mar 4 01:21:01 2021 +0100
tdf#116136 don't show status bar word count control tool tip
in print preview
Change-Id: Iad07d1d4951cba284c67d711ebd83507ca265864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111728
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj at gmail.com>
diff --git a/sw/source/uibase/utlui/wordcountctrl.cxx b/sw/source/uibase/utlui/wordcountctrl.cxx
index 93eba3c736df..d617c611c500 100644
--- a/sw/source/uibase/utlui/wordcountctrl.cxx
+++ b/sw/source/uibase/utlui/wordcountctrl.cxx
@@ -31,9 +31,15 @@ void SwWordCountStatusBarControl::StateChanged(
sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState )
{
if (eState == SfxItemState::DEFAULT) // Can access pState
+ {
GetStatusBar().SetItemText( GetId(), static_cast<const SfxStringItem*>(pState)->GetValue() );
-
- GetStatusBar().SetQuickHelpText(GetId(), SwResId(STR_WORDCOUNT_HINT));
+ GetStatusBar().SetQuickHelpText(GetId(), SwResId(STR_WORDCOUNT_HINT));
+ }
+ else
+ {
+ GetStatusBar().SetItemText(GetId(), u"");
+ GetStatusBar().SetQuickHelpText(GetId(), u"");
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list