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

New commits:
commit 86ca21d394e44a91a9cf027939403bd1a20ada64
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Mar 25 12:10:32 2022 +0000
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Mon May 16 12:38:26 2022 +0200

    forcepoint#89 don't remove page with footnote continuation frame
    
    in browse/html/web mode
    
    Change-Id: Ic821dd7f2cc1f47305b5fe2ced16d5168aedc0b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132045
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    (cherry picked from commit e672a8351df5e9fcbdafa34857a16f2bd547ebd6)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133938
    Tested-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index abd255b69662..62d78d4c38e6 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -306,7 +306,8 @@ bool SwLayAction::RemoveEmptyBrowserPages()
         do
         {
             if ( (pPage->GetSortedObjs() && pPage->GetSortedObjs()->size()) ||
-                 pPage->ContainsContent() )
+                 pPage->ContainsContent() ||
+                 pPage->FindFootnoteCont() )
                 pPage = static_cast<SwPageFrame*>(pPage->GetNext());
             else
             {

Reply via email to