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

coverity#1307697 Dereference null return value

Change-Id: I48bf70689153b83bd1da7ff1553a4a3ec823d1b2
üst babe536e
......@@ -712,13 +712,18 @@ bool SvxBackgroundTabPage::FillItemSet( SfxItemSet* rCoreSet )
if ( !bIsLink && !bIsGraphicValid )
bIsGraphicValid = LoadLinkedGraphic_Impl();
if ( eNewPos != eOldPos
|| bIsLink != bWasLink
|| ( bWasLink && rOldItem.GetGraphicLink()
!= aBgdGraphicPath )
|| ( !bWasLink && rOldItem.GetGraphic()->GetBitmap()
!= aBgdGraphic.GetBitmap() )
)
bool bModifyBrush = false;
if (eNewPos != eOldPos || bIsLink != bWasLink)
bModifyBrush = true;
else if (bWasLink && rOldItem.GetGraphicLink() != aBgdGraphicPath)
bModifyBrush = true;
else if (!bWasLink)
{
const Graphic* pGraphic = rOldItem.GetGraphic();
if (pGraphic)
bModifyBrush = pGraphic->GetBitmap() != aBgdGraphic.GetBitmap();
}
if (bModifyBrush)
{
bModified = 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