summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-16 09:15:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-16 09:16:02 +0100
commit4eea128a1fbac60f3ae8d28836c95152506d9ede (patch)
tree7161b232ff8b2619343b33c2aea765b03a9a7727 /sc
parente727d4ae8f4b38c7ee65425e4f7fa1d134765a1b (diff)
coverity#1294409 Dereference after null check
pDoc isn't null here Change-Id: Icf705f2bc67cb08a1920aea5965eb6f0e4786ada
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 925f47349046..2ebc698b097e 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 && pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering())
+ if (pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering())
{
return pViewData->GetLogicMode();
}