sw/source/core/layout/flycnt.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d6b9529c4f63d1dd5c57db4f4912471cce2507d9
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Tue Feb 7 16:19:52 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Feb 7 16:19:40 2023 +0000

    sw floattable: fix cid#1520800
    
    Only SwFrame::GetLeaf() calls this, but it only does so when we're in
    an at-para anchored fly frame, so we can require that this succeeds.
    
    Change-Id: I6c99bc2ea1ab4f338a536272ccce13fd22b30246
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146612
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx
index 474d21bd7f97..2d96e0fcea64 100644
--- a/sw/source/core/layout/flycnt.cxx
+++ b/sw/source/core/layout/flycnt.cxx
@@ -1597,6 +1597,7 @@ SwFlyAtContentFrame* SwFlyAtContentFrame::GetPrecede()
 SwLayoutFrame* SwFrame::GetPrevFlyLeaf()
 {
     auto pFly = dynamic_cast<SwFlyAtContentFrame*>(FindFlyFrame());
+    assert(pFly && "GetPrevFlyLeaf: missing fly frame");
     if (!pFly->IsFlySplitAllowed())
     {
         return nullptr;

Reply via email to