diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2015-10-24 19:03:33 +1000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-10-24 17:11:34 +0000 |
commit | 5a00b977b617bdd9ef263067e95d26c3953c575c (patch) | |
tree | 16b60b61bab10206751d9815a520b3daf62da3f0 | |
parent | 26b38babf9a85caac32019cd86e2307b446743c7 (diff) |
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/19570
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit 4fc31c1569ba1dc0e2e3aaf9eb8f0747776daa04)
Reviewed-on: https://gerrit.libreoffice.org/19579
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index ad3b6bffee8f..a93aea456625 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -3185,7 +3185,7 @@ void ScDocShell::libreOfficeKitCallback(int nType, const char* pPayload) const bool ScDocShell::isTiledRendering() const { - return aDocument.GetDrawLayer()->isTiledRendering(); + return aDocument.GetDrawLayer() && aDocument.GetDrawLayer()->isTiledRendering(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |