summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-11 20:02:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-11 21:05:59 +0100
commitad1bb28b25d24772e06c1d45e8ea8853702a1c10 (patch)
tree00456046ca5aca812620b0b803f5e0cb13cd048d /sw
parentbb9114f72332b0075d25e5ab625ea6c44cd12975 (diff)
coverity#1213291 Dereference before null check
Change-Id: I854a016523e290e2ea42aa86c0c46e8a31fc5018
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 68606d8d6594..8d16d93cb737 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2087,7 +2087,7 @@ void DrawGraphic(
{
GraphicAttr pGrfAttr = pGrf->GetAttr();
if ( (pGrfAttr.GetTransparency() != 0) &&
- ( pBrush && (pBrush->GetColor() == COL_TRANSPARENT) )
+ (pBrush->GetColor() == COL_TRANSPARENT)
)
{
bTransparentGrfWithNoFillBackgrd = true;