[Libreoffice-commits] core.git: sd/source

Caolán McNamara caolanm at redhat.com
Thu Jun 2 13:12:08 UTC 2016


 sd/source/ui/sidebar/SlideBackground.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e5d8dc12fcf64fbbefadefbe863c772dc9134d38
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jun 2 14:11:30 2016 +0100

    Resolves: tdf#100191 crash: switch to Display Mode: Notes via toolbar
    
    Change-Id: I65f5f68433940fa0b50ad951fbb96085178a42d9

diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 73da0e7..28e9bd9 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -349,7 +349,8 @@ void SlideBackground::populateMasterSlideDropdown()
 
 void SlideBackground::updateMasterSlideSelection()
 {
-    SdPage* pPage = mrBase.GetMainViewShell().get()->getCurrentPage();
+    ViewShell* pMainViewShell = mrBase.GetMainViewShell().get();
+    SdPage* pPage = pMainViewShell ? pMainViewShell->getCurrentPage() : nullptr;
     if (pPage != nullptr && pPage->TRG_HasMasterPage())
     {
         SdrPage& rMasterPage (pPage->TRG_GetMasterPage());


More information about the Libreoffice-commits mailing list