summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-05-26 15:08:05 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-05-26 17:37:10 +0200
commit31f2de053d89fc782f98f74785643dbd6e19ba73 (patch)
tree5b266a56c62d609d94157b092488963732bcf0e5 /sw
parent1354d0ffcabc6e7f78767e8cac1e8c127d4e4b6c (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx4
1 files changed, 4 insertions, 0 deletions
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;