summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/view2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx
index 58b5ce4289b3..73a8b9672817 100644
--- a/sw/source/ui/uiview/view2.cxx
+++ b/sw/source/ui/uiview/view2.cxx
@@ -1205,10 +1205,8 @@ void SwView::StateStatusLine(SfxItemSet &rSet)
SwDocStat documentStats;
{
SwWait aWait( *GetDocShell(), sal_True );
- rShell.StartAction();
rShell.CountWords(selectionStats);
- documentStats = rShell.GetUpdatedDocStat();
- rShell.EndAction();
+ documentStats = rShell.GetDoc()->GetUpdatedDocStat();
}
const sal_uInt32 stringId = selectionStats.nWord? STR_STATUSBAR_WORDCOUNT : STR_STATUSBAR_WORDCOUNT_NO_SELECTION;