summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 17:07:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 17:17:21 +0000
commitc0bb06995b7f83cd5ae54ee2219d410a66b11e5c (patch)
tree7b037dd38459845e143eb88ed68e9e183dfeef40 /sw
parentaaef39de32442203d631a65aecf23eeb27dfbb12 (diff)
coverity#1130357 Dereference after null check
Change-Id: I6b4735134bb9910fbad3cd4696b159f9f6d93df7
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 097a0259d911..179330712889 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -5886,7 +5886,7 @@ sal_Bool SwPageFrm::IsLeftShadowNeeded() const
bool bPaintRightShadow,
bool bRightSidebar )
{
- const SwPostItMgr *pMgr = _pViewShell ? _pViewShell->GetPostItMgr() : 0;
+ const SwPostItMgr *pMgr = _pViewShell->GetPostItMgr();
SwRect aAlignedPageRect( _rPageRect );
::SwAlignRect( aAlignedPageRect, _pViewShell );
SwRect aPagePxRect =