summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-22 19:30:39 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-10-24 12:06:19 +0200
commit0c4aa1157bb1b992fa5f887920194d67f52df752 (patch)
treeeea624796f561c807be4e74aa8171b7408844038
parentsw content controls, alias: add PDF export (diff)
downloadcore-0c4aa1157bb1b992fa5f887920194d67f52df752.tar.gz
core-0c4aa1157bb1b992fa5f887920194d67f52df752.zip
cid#1516141 Dereference after null check
Change-Id: Id779ae022269906a17f4f7637d7f634d5d7102d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141669 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 2179cfbb96e3..e7cdef70f132 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4290,7 +4290,7 @@ void SwFlyFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const&
Validate();
{
- SwTaggedPDFHelper tag(nullptr, nullptr, nullptr, *pShell->GetOut());
+ SwTaggedPDFHelper tag(nullptr, nullptr, nullptr, rRenderContext);
// first paint lines added by fly frame paint
// and then unlock other lines.
gProp.pSLines->PaintLines( &rRenderContext, gProp );