sd/qa/uitest/impress_tests/masterElements.py |    2 ++
 sd/source/ui/view/drviews7.cxx               |    3 +++
 2 files changed, 5 insertions(+)

New commits:
commit 58360b3678eba90261f3f023968015716ec57336
Author:     Andreas Heinisch <[email protected]>
AuthorDate: Thu Jan 15 09:14:34 2026 +0100
Commit:     Adolfo Jayme Barrientos <[email protected]>
CommitDate: Fri Jan 23 10:06:28 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
    Signed-off-by: Xisco Fauli <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197765
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>

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 5df8cc3e7bee..1d9f2d4dc11c 100644
--- a/sd/source/ui/view/drviews7.cxx
+++ b/sd/source/ui/view/drviews7.cxx
@@ -851,6 +851,9 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet )
         rSet.DisableItem (SID_DELETE_MASTER_PAGE);
         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);
     }
     else
     {

Reply via email to