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

New commits:
commit bbbd7e346c5b929ca3b867b6dd80c71b8dd788d6
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Aug 25 09:54:28 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Aug 25 15:45:18 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>

diff --git a/sw/source/core/layout/paintfrm.cxx 
b/sw/source/core/layout/paintfrm.cxx
index cf9edb359c98..6b55991efc16 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -7267,7 +7267,8 @@ std::vector<basegfx::B2DPolygon> 
SwPageFrame::GetSubsidiaryLinesPolygons(const S
         pLay = pLay->GetNext();
     }
 
-    assert(pPageBody && "presumably this is impossible");
+    if (!pPageBody)
+        return aPolygons;
 
     SwRect aArea( pPageBody->getFrameArea() );
     if ( pFootnoteCont )

Reply via email to