summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-09 15:22:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-05-09 22:29:48 +0200
commit23338100720a76420e302f02b876b3708a95cdda (patch)
tree5b77904d19d98557e3c2b336db66b8361f7e8dc7 /sd
parentda17ccaec39f50de68c3fdd431bc66a2bec04127 (diff)
Resolves: tdf#124927 crash on multiple drawing shapes in animation dialog
since... SOSAW080: Added first bunch of basic changes to helpers commit dfefe448c41921f2f1e54d3f69b8b9e89031d055 Date: Thu Mar 1 15:54:32 2018 +0100 Change-Id: I9feba16b5efdbec5c817bebf2772e2f2882bdfe9 Reviewed-on: https://gerrit.libreoffice.org/72054 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/tools/PreviewRenderer.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx
index 7a14af3ee683..b3eb95402df3 100644
--- a/sd/source/ui/tools/PreviewRenderer.cxx
+++ b/sd/source/ui/tools/PreviewRenderer.cxx
@@ -199,13 +199,16 @@ bool PreviewRenderer::Initialize (
const Size& rPixelSize,
const bool bObeyHighContrastMode)
{
- if (pPage == nullptr)
+ if (!pPage)
return false;
SetupOutputSize(*pPage, rPixelSize);
SdDrawDocument& rDocument(static_cast< SdDrawDocument& >(pPage->getSdrModelFromSdrPage()));
DrawDocShell* pDocShell = rDocument.GetDocSh();
+ if (!pDocShell)
+ return false;
+
// Create view
ProvideView (pDocShell);
if (mpView == nullptr)