sw/source/core/layout/paintfrm.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 17e61679dfc0dc3fd6cb1ff685f8bbf7b4cdbd91 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Aug 25 09:54:28 2023 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Mon Aug 28 21:44:29 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/+/156001 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index ac9389e03277..4c5f1bf11489 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -7116,7 +7116,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 )