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

coverity#704913 Explicit null dereferenced

Change-Id: Idfdeca8e19438081acabd51aa72d7f6322c4b31b
üst 5a870b38
......@@ -1184,7 +1184,7 @@ void SwSubsRects::PaintSubsidiary( OutputDevice *pOut,
case SUBCOL_SECT: pCol = &SwViewOption::GetSectionBoundColor(); break;
}
if ( pOut->GetFillColor() != *pCol )
if (pCol && pOut->GetFillColor() != *pCol)
pOut->SetFillColor( *pCol );
pOut->DrawRect( rLRect.SVRect() );
......
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