diff options
Diffstat (limited to 'sw/source/ui/shells/drwtxtex.cxx')
-rw-r--r-- | sw/source/ui/shells/drwtxtex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx index 0deab441cb60..47a6b1a6caf2 100644 --- a/sw/source/ui/shells/drwtxtex.cxx +++ b/sw/source/ui/shells/drwtxtex.cxx @@ -347,12 +347,12 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) case FN_WORDCOUNT_DIALOG: { SwDocStat aCurr; - SwDocStat aDocStat( rSh.getIDocumentStatistics()->GetDocStat() ); + SwDocStat aDocStat; { SwWait aWait( *GetView().GetDocShell(), sal_True ); rSh.StartAction(); rSh.CountWords( aCurr ); - rSh.UpdateDocStat( aDocStat ); + aDocStat = rSh.GetUpdatedDocStat(); rSh.EndAction(); } |