sw/source/uibase/uno/unotxdoc.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 31f2de053d89fc782f98f74785643dbd6e19ba73 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri May 26 15:08:05 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri May 26 17:37:10 2023 +0200 Related: tdf#155507 disable HeaderFooter menu for tiled rendering Change-Id: I3fa87dc40c8e68d00f2f2fa82a0e6c4179466429 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152332 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index b57cea597759..fadfe90a82b6 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3603,6 +3603,10 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css:: // Disable field shadings: the result would depend on the cursor position. aViewOption.SetAppearanceFlag(ViewOptFlags::FieldShadings, false); + // The fancy header/footer controls don't work in tiled mode anyway, so + // explicitly disable them to enable skipping invalidating the view for + // the case of clicking in the header area of a document with no headers + aViewOption.SetUseHeaderFooterMenu(false); OUString sOrigAuthor = SW_MOD()->GetRedlineAuthor(SW_MOD()->GetRedlineAuthor()); OUString sAuthor;