coverity#735922 Dereference after null check
Change-Id: Iff9f084d85af4b319c7f175c9b7834fd7ba4603a
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user