Kaydet (Commit) ad1bb28b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1213291 Dereference before null check

Change-Id: I854a016523e290e2ea42aa86c0c46e8a31fc5018
üst bb9114f7
...@@ -2087,7 +2087,7 @@ void DrawGraphic( ...@@ -2087,7 +2087,7 @@ void DrawGraphic(
{ {
GraphicAttr pGrfAttr = pGrf->GetAttr(); GraphicAttr pGrfAttr = pGrf->GetAttr();
if ( (pGrfAttr.GetTransparency() != 0) && if ( (pGrfAttr.GetTransparency() != 0) &&
( pBrush && (pBrush->GetColor() == COL_TRANSPARENT) ) (pBrush->GetColor() == COL_TRANSPARENT)
) )
{ {
bTransparentGrfWithNoFillBackgrd = true; bTransparentGrfWithNoFillBackgrd = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment