sw/source/core/layout/paintfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0c4aa1157bb1b992fa5f887920194d67f52df752 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Oct 22 19:30:39 2022 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Oct 24 12:06:19 2022 +0200 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.st...@allotropia.de> 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 );