sw/source/uibase/uno/unotxdoc.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 7f38801e2d4ff57a363ed60d3031ef42abb2cb8a 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: Wed May 31 14:10:26 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> (cherry picked from commit 31f2de053d89fc782f98f74785643dbd6e19ba73) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152432 Tested-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 29bede97f15b..1a1c5c3ec41a 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3605,6 +3605,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;