summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-18 12:07:16 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-01-28 12:44:19 +0100
commitaf1918a987be3578affa85b06cd2220c59108a27 (patch)
treefe00075bfa812fc29967984a80f9734076f5a859
parent4697b9f7a4bab4357837d1212fbc57ba6e7c50b9 (diff)
XTextDocument::refresh should do a full reformatting
Change-Id: Ia92e10e43cb8254b6dd35db03462b87d0fe93f45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109538 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> (cherry picked from commit cbbfed893616f804cb6557185ddda26c0cef2ed6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109531 Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index e3d80b664deb..e5ce030ddaac 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -2232,7 +2232,7 @@ void SwXTextDocument::refresh()
SwViewShell *pViewShell = pDocShell->GetWrtShell();
NotifyRefreshListeners();
if(pViewShell)
- pViewShell->CalcLayout();
+ pViewShell->Reformat();
}
void SAL_CALL SwXTextDocument::addRefreshListener(