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

coverity#1436018 Dereference after null check

Change-Id: Id6a8ebdde5a08d9581c165a85f067ffaef490cab
Reviewed-on: https://gerrit.libreoffice.org/55604Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1f08bff3
......@@ -1981,9 +1981,11 @@ void SwTextFrame::SwClientNotify(SwModify const& rModify, SfxHint const& rHint)
InvalidatePrt_();
}
if (nClear || (m_pMergedPara &&
const bool bMergeModify = (m_pMergedPara &&
(m_pMergedPara->pParaPropsNode != &rModify ||
m_pMergedPara->pFirstNode != &rModify)))
m_pMergedPara->pFirstNode != &rModify));
const bool bHasOldNew = pOld && pNew;
if ((nClear || bMergeModify) && bHasOldNew)
{
SwAttrSetChg aOldSet( *static_cast<const SwAttrSetChg*>(pOld) );
SwAttrSetChg aNewSet( *static_cast<const SwAttrSetChg*>(pNew) );
......
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