diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-25 09:54:28 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-08-28 21:44:29 +0200 |
commit | 17e61679dfc0dc3fd6cb1ff685f8bbf7b4cdbd91 (patch) | |
tree | 7f0324ed833cccd05c3e7101d79b68cbde464e94 | |
parent | fa1f583f60d4eb12a3bc364be97b00f034833201 (diff) |
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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) |