sd/qa/uitest/impress_tests/masterElements.py | 2 ++ sd/source/ui/view/drviews7.cxx | 3 +++ 2 files changed, 5 insertions(+)
New commits: commit 63e4293827a6ed112b2cda317f80938acb35849f Author: Andreas Heinisch <[email protected]> AuthorDate: Thu Jan 15 09:14:34 2026 +0100 Commit: Andreas Heinisch <[email protected]> CommitDate: Wed Jan 21 00:10:21 2026 +0100 tdf#112327 - Impress: disable master layouts in page view Change-Id: Icd01828fb786a4bf10a1f54d0eb750e9a7597baf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197318 Reviewed-by: Andreas Heinisch <[email protected]> Tested-by: Jenkins diff --git a/sd/qa/uitest/impress_tests/masterElements.py b/sd/qa/uitest/impress_tests/masterElements.py index 0a0276720932..2b8ff497c3ea 100644 --- a/sd/qa/uitest/impress_tests/masterElements.py +++ b/sd/qa/uitest/impress_tests/masterElements.py @@ -19,6 +19,8 @@ class masterElements(UITestCase): xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) + # tdf#112327 - switch to master page view since master elements are disabled in normal mode + self.xUITest.executeCommand(".uno:SlideMasterPage") with self.ui_test.execute_dialog_through_command(".uno:MasterLayouts") as xDialog: xpagenumber = xDialog.getChild("pagenumber") diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 44009a6ee9f3..6c26d5cf9df1 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -852,6 +852,9 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) rSet.DisableItem (SID_RENAME_MASTER_PAGE); rSet.DisableItem (SID_CLOSE_MASTER_VIEW); + // tdf#112327 - disable master layouts in page view + rSet.DisableItem(SID_MASTER_LAYOUTS); + if (mpActualPage->IsCanvasPage()) { rSet.DisableItem(SID_INSERTPAGE);
