[Libreoffice-commits] core.git: officecfg/registry sw/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jan 13 13:47:37 UTC 2021
officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu | 2 +-
sw/source/uibase/uiview/view2.cxx | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 51ef3a3af573287b03262e96bf8298bdbe06c44d
Author: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
AuthorDate: Tue Jan 12 13:22:37 2021 +0100
Commit: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
CommitDate: Wed Jan 13 14:46:49 2021 +0100
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 at allotropia.de>
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index 1f6ed2730309..76f453d7d816 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -2597,7 +2597,7 @@
</node>
<node oor:name=".uno:RefreshView" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
- <value xml:lang="en-US">Restore View</value>
+ <value xml:lang="en-US">Refresh document layout</value>
</prop>
</node>
<node oor:name=".uno:JumpToEndOfDoc" oor:op="replace">
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:
More information about the Libreoffice-commits
mailing list