summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-12 13:22:37 +0100
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-13 14:46:49 +0100
commit51ef3a3af573287b03262e96bf8298bdbe06c44d (patch)
tree12191ffda0df95a080aeccd5fc01afd41f8fd5f9 /sw
parent502f6372aeb6689f3d61cea7a77b2e8db160d767 (diff)
Make uno:RefreshView redo the whole document layout
This is useful when encountering layout problems, to refresh the doc layout from an extension. Change-Id: Ie2472f061ebea203a9d876782b3bb953477de7c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109169 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/view2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index 799b8feaf98e..adeb5ed16e6a 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -563,6 +563,7 @@ void SwView::Execute(SfxRequest &rReq)
break;
case FN_REFRESH_VIEW:
GetEditWin().Invalidate();
+ m_pWrtShell->Reformat();
break;
case FN_PAGEUP:
case FN_PAGEUP_SEL: