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

New commits:
commit 8c886e86bc4b7534a0376204fdc646ce8103eedf
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Aug 25 09:54:28 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Sep 4 10:41:11 2023 +0200

    crash case seen on clicking on drawing text box inside a footer
    
    Change-Id: Id7645ad651d237c94fecb2fc2b6c57a88f3caa55
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156091
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    (cherry picked from commit bbbd7e346c5b929ca3b867b6dd80c71b8dd788d6)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156383
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index 361e750570e9..8f6347a2268e 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -7257,7 +7257,8 @@ void SwPageFrame::PaintSubsidiaryLines( const SwPageFrame 
*,
         pLay = pLay->GetNext();
     }
 
-    assert(pPageBody && "presumably this is impossible");
+    if (!pPageBody)
+        return;
 
     SwRect aArea( pPageBody->getFrameArea() );
     if ( pFootnoteCont )

Reply via email to