sd/source/ui/sidebar/SlideBackground.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit db5498031c033bef32ba0714279db9ecfb7b860a Author: Caolán McNamara <caol...@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 (cherry picked from commit e5d8dc12fcf64fbbefadefbe863c772dc9134d38) diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 2a616f5..f6c7d89 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -350,7 +350,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());
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits