sw/qa/core/data/html/pass/ofz39850-1.html |binary
 sw/source/filter/html/htmlsect.cxx        |    2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 738ef11520a9e0e2b7793dc7117d6540fd66db47
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Oct 12 14:58:07 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Oct 12 18:21:29 2021 +0200

    ofz#39850 remove content anchored to para being removed
    
    Change-Id: I15992b3d995b1c01827637ffb050b5db7213217d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123457
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/qa/core/data/html/pass/ofz39850-1.html 
b/sw/qa/core/data/html/pass/ofz39850-1.html
new file mode 100644
index 000000000000..ebe25683cea4
Binary files /dev/null and b/sw/qa/core/data/html/pass/ofz39850-1.html differ
diff --git a/sw/source/filter/html/htmlsect.cxx 
b/sw/source/filter/html/htmlsect.cxx
index 82f02d613587..99600517a0d4 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -209,7 +209,7 @@ void SwHTMLParser::NewDivision( HtmlTokenId nToken )
 
             if (!PendingObjectsInPaM(aDelPam))
             {
-                ClearFootnotesMarksInRange(aDelPam.GetMark()->nNode, 
aDelPam.GetPoint()->nNode);
+                m_xDoc->getIDocumentContentOperations().DeleteRange(aDelPam);
                 m_xDoc->getIDocumentContentOperations().DelFullPara(aDelPam);
             }
 

Reply via email to