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

coverity#705506 Dereference null return value

Change-Id: Id5676b391037d5fbee3bba0df1ee1e312dcb775c
üst 6cf39bbe
...@@ -2280,6 +2280,7 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan ...@@ -2280,6 +2280,7 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan
{ {
SwGrfNode *pGrfNd = pDoc->GetNodes()[ pFmt->GetCntnt().GetCntntIdx() SwGrfNode *pGrfNd = pDoc->GetNodes()[ pFmt->GetCntnt().GetCntntIdx()
->GetIndex()+1 ]->GetGrfNode(); ->GetIndex()+1 ]->GetGrfNode();
if (pGrfNd)
pGrfNd->SetChgTwipSize( !bSizeFound ); pGrfNd->SetChgTwipSize( !bSizeFound );
pFmt->Add(this); pFmt->Add(this);
if(!m_sName.isEmpty()) if(!m_sName.isEmpty())
......
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