summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-04-03 23:51:21 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:18:20 +0200
commitfa9b324f8eff93e05bd9ba3813b93e1bdc35aa30 (patch)
tree19a282e4a005da8f1820ddad0f26dd58aebf6467 /sc
parent626e15b6175d24ec68e519836e6438d5f8bf14d0 (diff)
sc tiled editing: Don't crash on desktop.
Change-Id: I4cb63550b3913d097db63b374f0acbea591682e4
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index be017e378e92..925f47349046 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -243,7 +243,7 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
// work in the logic coordinates (ideally 100ths of mm - so that it is
// the same as editeng and drawinglayer), and get rid of all the
// SetMapMode's and other unneccessary fun we have with pixels
- if (pDoc->GetDrawLayer()->isTiledRendering())
+ if (pDoc && pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering())
{
return pViewData->GetLogicMode();
}