sw/source/core/layout/paintfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit df5ca3dfda0a82cf0434818a351e2385a136d397
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Oct 22 19:30:39 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Oct 24 21:04:09 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>
    (cherry picked from commit 0c4aa1157bb1b992fa5f887920194d67f52df752)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141735

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index 7cae991210d7..f168cbd5ad9d 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -4288,7 +4288,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 );

Reply via email to