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

coverity#735922 Dereference after null check

Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a
üst 70bf4866
......@@ -1652,7 +1652,7 @@ void SwUndoTblNdsChg::SaveNewBoxes( const SwTableNode& rTblNd,
// then pBox received nodes from elsewhere.
// If bNodesMoved is set for pBox the undo must move the
// boxes back, otherwise it must delete them.
sal_Bool bNodesMoved =
sal_Bool bNodesMoved = pSourceBox &&
( nNodes != ( pSourceBox->GetSttNd()->EndOfSectionIndex() -
pSourceBox->GetSttIdx() ) )
&& ( nNodes - 1 > nLineDiff );
......
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