Kaydet (Commit) 6670ae80 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#124927 crash on multiple drawing shapes in animation dialog

since...

SOSAW080: Added first bunch of basic changes to helpers
commit dfefe448
Date:   Thu Mar 1 15:54:32 2018 +0100

Change-Id: I9feba16b5efdbec5c817bebf2772e2f2882bdfe9
Reviewed-on: https://gerrit.libreoffice.org/72055Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
Tested-by: Jenkins
üst 70bb74f2
...@@ -199,13 +199,16 @@ bool PreviewRenderer::Initialize ( ...@@ -199,13 +199,16 @@ bool PreviewRenderer::Initialize (
const Size& rPixelSize, const Size& rPixelSize,
const bool bObeyHighContrastMode) const bool bObeyHighContrastMode)
{ {
if (pPage == nullptr) if (!pPage)
return false; return false;
SetupOutputSize(*pPage, rPixelSize); SetupOutputSize(*pPage, rPixelSize);
SdDrawDocument& rDocument(static_cast< SdDrawDocument& >(pPage->getSdrModelFromSdrPage())); SdDrawDocument& rDocument(static_cast< SdDrawDocument& >(pPage->getSdrModelFromSdrPage()));
DrawDocShell* pDocShell = rDocument.GetDocSh(); DrawDocShell* pDocShell = rDocument.GetDocSh();
if (!pDocShell)
return false;
// Create view // Create view
ProvideView (pDocShell); ProvideView (pDocShell);
if (mpView == nullptr) if (mpView == nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment