summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-18 12:07:16 +0100
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-21 08:54:10 +0100
commitb510f403f9fb9e429ffe9faccf78808d64c5f8b5 (patch)
tree51dbdfd2b5d2bc1528acae04f440d4f75fcee950 /sw
parentaaa3358969cafe3edc2904599b69f7f3c6aee545 (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/+/109572 Tested-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sw')
-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 1db55d3c5831..1bbf2fc5a972 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -2246,7 +2246,7 @@ void SwXTextDocument::refresh()
SwViewShell *pViewShell = pDocShell->GetWrtShell();
NotifyRefreshListeners();
if(pViewShell)
- pViewShell->CalcLayout();
+ pViewShell->Reformat();
}
void SAL_CALL SwXTextDocument::addRefreshListener(