[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sc/source
Jan Holesovsky
kendy at collabora.com
Fri Apr 3 14:52:57 PDT 2015
sc/source/ui/view/gridwin3.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fa9f8daf78872ad194f21a664202b3908b0e4053
Author: Jan Holesovsky <kendy at collabora.com>
Date: Fri Apr 3 23:51:21 2015 +0200
sc tiled editing: Don't crash on desktop.
Change-Id: I4cb63550b3913d097db63b374f0acbea591682e4
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index be017e3..925f473 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();
}
More information about the Libreoffice-commits
mailing list