sw/source/uibase/utlui/wordcountctrl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 123e49d6e307c41a5f59878335563ad7203b23ff Author: Samuel Mehrbrodt <s.mehrbr...@gmail.com> Date: Sun Nov 9 19:02:52 2014 +0100 Try to fix CppunitTest_sw_mailmerge test Change-Id: I225ef5b01625e8260b751e5255161ae51456fbf1 diff --git a/sw/source/uibase/utlui/wordcountctrl.cxx b/sw/source/uibase/utlui/wordcountctrl.cxx index c43c345..3d3ac34 100644 --- a/sw/source/uibase/utlui/wordcountctrl.cxx +++ b/sw/source/uibase/utlui/wordcountctrl.cxx @@ -25,9 +25,10 @@ SwWordCountStatusBarControl::~SwWordCountStatusBarControl() } void SwWordCountStatusBarControl::StateChanged( - sal_uInt16 /*nSID*/, SfxItemState /*eState*/, const SfxPoolItem* pState ) + sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { - GetStatusBar().SetItemText( GetId(), ((SfxStringItem*)pState)->GetValue() ); + if (eState == SfxItemState::DEFAULT) // Can access pState + GetStatusBar().SetItemText( GetId(), ((SfxStringItem*)pState)->GetValue() ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits