summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-25 11:46:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-25 11:46:57 +0100
commit744a0dca6f91b7ccf9d8c5fac816c52833e0a306 (patch)
tree878c1a491dd620c473ece1defb6dabdff104543e
parent09d79da135fcf7a16e7b692cf0264cc5432f57b4 (diff)
coverity#704911 Dereference after null check
Change-Id: Ifd556b56230f359b2d8b95795686a4a6803fa6dc
-rw-r--r--sw/source/core/layout/pagechg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 34b348811609..45c3f51635ea 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -2159,7 +2159,7 @@ void SwRootFrm::CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVi
}
}
}
- while ( pPageToAdjust != pEndOfRow );
+ while (pPageToAdjust && pPageToAdjust != pEndOfRow);
// adjust values for root frame size
nSumRowHeight = nSumRowHeight + nCurrentRowHeight;