summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-09-07 16:47:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-09-07 22:17:18 +0200
commit0fe9ce208190d2329707a8684ed705c2e7d6f1d0 (patch)
tree9944c94361a2c35038bd66e7db7ccd2992194436 /sw
parent1bd83f0f6ad3d9fa84b4eae38b3393526e233771 (diff)
cid#1509283 silence Dereference after null check
and cid#1509253 Dereference after null check which seem to exist since: commit 42ba2b6c03a74815d2041e554fea83350d554dd1 Date: Mon Sep 19 15:37:25 2011 +0200 Text Boundaries: draw small inner corners for the columns areas Change-Id: Ibd292003349816107acf5044433c67ba6accc84b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139605 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index dd76c8609fda..5a37468f0d72 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -6935,6 +6935,8 @@ void SwPageFrame::PaintSubsidiaryLines( const SwPageFrame *,
pLay = pLay->GetNext();
}
+ assert(pPageBody && "presumably this is impossible");
+
SwRect aArea( pPageBody->getFrameArea() );
if ( pFootnoteCont )
aArea.AddBottom( pFootnoteCont->getFrameArea().Bottom() - aArea.Bottom() );
@@ -6960,6 +6962,8 @@ void SwColumnFrame::PaintSubsidiaryLines( const SwPageFrame *,
pLay = pLay->GetNext();
}
+ assert(pColBody && "presumably this is impossible");
+
SwRect aArea( pColBody->getFrameArea() );
// #i3662# - enlarge top of column body frame's printing area