Kaydet (Commit) 0440f4f0 authored tarafından Mike Kaganski's avatar Mike Kaganski Kaydeden (comit) Jan Holesovsky

tdf#95220: Check if DrawingLayer is not nullptr

bool ScDocShell::isTiledRendering() const crashed without this check

Change-Id: Idb7ace05eb1aa37cbc3d956503c046b0e9b9d0e5
Reviewed-on: https://gerrit.libreoffice.org/19570Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 9f5606a2
...@@ -3185,7 +3185,7 @@ void ScDocShell::libreOfficeKitCallback(int nType, const char* pPayload) const ...@@ -3185,7 +3185,7 @@ void ScDocShell::libreOfficeKitCallback(int nType, const char* pPayload) const
bool ScDocShell::isTiledRendering() const bool ScDocShell::isTiledRendering() const
{ {
return aDocument.GetDrawLayer()->isTiledRendering(); return aDocument.GetDrawLayer() && aDocument.GetDrawLayer()->isTiledRendering();
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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