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.
|
// then pBox received nodes from elsewhere.
|
||||||
// If bNodesMoved is set for pBox the undo must move the
|
// If bNodesMoved is set for pBox the undo must move the
|
||||||
// boxes back, otherwise it must delete them.
|
// boxes back, otherwise it must delete them.
|
||||||
sal_Bool bNodesMoved =
|
sal_Bool bNodesMoved = pSourceBox &&
|
||||||
( nNodes != ( pSourceBox->GetSttNd()->EndOfSectionIndex() -
|
( nNodes != ( pSourceBox->GetSttNd()->EndOfSectionIndex() -
|
||||||
pSourceBox->GetSttIdx() ) )
|
pSourceBox->GetSttIdx() ) )
|
||||||
&& ( nNodes - 1 > nLineDiff );
|
&& ( nNodes - 1 > nLineDiff );
|
||||||
|
Reference in New Issue
Block a user