coverity#735922 Dereference after null check

Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a
This commit is contained in:
Caolán McNamara
2014-02-13 14:22:13 +00:00
parent 70bf486672
commit f8ebc65a51

View File

@@ -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 );