diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-15 10:07:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-15 20:25:20 +0200 |
commit | c2243d4ced63c5a9764e5d83812285e08e0ea918 (patch) | |
tree | b71e08c7ce74214cf2cd7215ca9417cdaddad0c3 | |
parent | 312b9a67f08de17f68ca971f4d640bc2df8de12e (diff) |
cid#1596278 Dereference after null check
Change-Id: I4fb7b4b113e60dc3cc4aabd49e4dd23dbeeb74f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166112
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sw/source/core/text/frmform.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/frmform.cxx b/sw/source/core/text/frmform.cxx index 97eff3e607ec..4e2caf27b276 100644 --- a/sw/source/core/text/frmform.cxx +++ b/sw/source/core/text/frmform.cxx @@ -1202,7 +1202,7 @@ void SwTextFrame::FormatAdjust( SwTextFormatter &rLine, { // Do not split immediately in the beginning of page (unless there is an at-para or // at-char or at-page fly, which pushes the rest down) - if (isFirstVisibleFrameInBody(this) && !hasFly(this) && !hasAtPageFly(pBodyFrame)) + if (isFirstVisibleFrameInBody(this) && !hasFly(this) && pBodyFrame && !hasAtPageFly(pBodyFrame)) nNew = 0; } } |