sd/source/ui/dlg/BulletAndPositionDlg.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 9887674044e17c4925caa07f197d74233be810d2
Author:     Gokce Kuler <gokceku...@gmail.com>
AuthorDate: Sat Feb 13 00:50:33 2021 +0300
Commit:     Gülşah Köse <gulsah.k...@collabora.com>
CommitDate: Sat Feb 13 17:49:33 2021 +0100

    tdf#137406 removed Apply to Master button in Slide Master mode
    
    Change-Id: Ic19c38a5e6e561cae45cd0a40cfe56d7002efe9e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110835
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com>

diff --git a/sd/source/ui/dlg/BulletAndPositionDlg.cxx 
b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
index c1edb30a548b..b5a41054b3b1 100644
--- a/sd/source/ui/dlg/BulletAndPositionDlg.cxx
+++ b/sd/source/ui/dlg/BulletAndPositionDlg.cxx
@@ -46,6 +46,7 @@
 #include <cui/cuicharmap.hxx>
 #include <BulletAndPositionDlg.hxx>
 #include <sdresid.hxx>
+#include <DrawViewShell.hxx>
 
 #define SHOW_NUMBERING 0
 #define SHOW_BULLET 1
@@ -203,6 +204,10 @@ 
SvxBulletAndPositionDlg::SvxBulletAndPositionDlg(weld::Window* pWindow, const Sf
         m_xApplyToMaster->hide();
         m_xSlideRB->set_label(SdResId(STR_PAGE_NAME));
     }
+    // tdf#137406: Crash when clicking "Apply to Master" in Slide Master mode 
on Bullets and Numbering dialog
+    EditMode aEditmode = 
static_cast<::sd::DrawViewShell*>(pView->GetViewShell())->GetEditMode();
+    if (aDocumentType == DocumentType::Impress && aEditmode == 
EditMode::MasterPage)
+        m_xApplyToMaster->hide();
 
     // End PageCreated
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to