diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-11 15:11:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-11 15:22:09 +0000 |
commit | c5e580abdb7fbd904e07ed0620e7acdbc382125f (patch) | |
tree | 0784e4ca85a42999dedfc6c53bdd18d272473fa3 | |
parent | 9bf4b8c51d2dc2be892121349a63ab029a627fe8 (diff) |
coverity#1130164 Unchecked return value
Change-Id: I9d040b0a8862095ff7ac20b07642d60c17e54fce
-rw-r--r-- | sw/source/core/text/atrstck.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/atrstck.cxx b/sw/source/core/text/atrstck.cxx index eb4584fb7c5d..0f12f74103a9 100644 --- a/sw/source/core/text/atrstck.cxx +++ b/sw/source/core/text/atrstck.cxx @@ -224,8 +224,8 @@ static bool lcl_ChgHyperLinkColor( const SwTxtAttr& rAttr, rINetAttr.SetVisited(false); const SwCharFmt* pTmpFmt = rINetAttr.GetCharFmt(); const SfxPoolItem* pItem; - pTmpFmt->GetItemState( RES_CHRATR_COLOR, true, &pItem ); - *pColor = ((SvxColorItem*)pItem)->GetValue(); + if (SfxItemState::SET == pTmpFmt->GetItemState(RES_CHRATR_COLOR, true, &pItem)) + *pColor = ((SvxColorItem*)pItem)->GetValue(); rINetAttr.SetVisited(true); } return true; |