sw/source/ui/dialog/wordcountdialog.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit d6ce2c0500ab026ba131782365a41da93794196f Author: Mike Kaganski <[email protected]> AuthorDate: Thu Jul 30 00:43:14 2020 +0300 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Jul 30 08:34:16 2020 +0200 tdf#135244: don't jump when updating counts Change-Id: Id1693e420a51a913fa78da7b7f46e076876ffe68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99756 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/ui/dialog/wordcountdialog.cxx b/sw/source/ui/dialog/wordcountdialog.cxx index ba159d4e6aa6..e7b739ac9a2a 100644 --- a/sw/source/ui/dialog/wordcountdialog.cxx +++ b/sw/source/ui/dialog/wordcountdialog.cxx @@ -19,6 +19,7 @@ #include <officecfg/Office/Writer.hxx> #include <wordcountdialog.hxx> +#include <docsh.hxx> #include <docstat.hxx> #include <swmodule.hxx> #include <view.hxx> @@ -133,7 +134,9 @@ void SwWordCountFloatDlg::UpdateCounts() SwDocStat aCurrCnt; SwDocStat aDocStat; { - SwWait aWait( *::GetActiveView()->GetDocShell(), true ); + auto& rDocShell(*GetActiveView()->GetDocShell()); + SwWait aWait(rDocShell, true); + auto aLock = rDocShell.LockAllViews(); rSh.StartAction(); rSh.CountWords( aCurrCnt ); aDocStat = rSh.GetUpdatedDocStat(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
