From cbbfed893616f804cb6557185ddda26c0cef2ed6 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Mon, 18 Jan 2021 12:07:16 +0100 Subject: [PATCH] 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 --- sw/source/uibase/uno/unotxdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 7fa248a90e65..1a0615b0f09f 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -2225,7 +2225,7 @@ void SwXTextDocument::refresh() SwViewShell *pViewShell = m_pDocShell->GetWrtShell(); NotifyRefreshListeners(); if(pViewShell) - pViewShell->CalcLayout(); + pViewShell->Reformat(); } void SAL_CALL SwXTextDocument::addRefreshListener(