summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-12 14:58:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-12 18:21:29 +0200
commit738ef11520a9e0e2b7793dc7117d6540fd66db47 (patch)
treeeda865049d43577fd0d20cd55248e98dc6c26c99
parenta975a5f80fcb6bfa5d656e5647485832bb41d49e (diff)
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 <caolanm@redhat.com>
-rw-r--r--sw/qa/core/data/html/pass/ofz39850-1.htmlbin0 -> 27040 bytes
-rw-r--r--sw/source/filter/html/htmlsect.cxx2
2 files changed, 1 insertions, 1 deletions
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
--- /dev/null
+++ b/sw/qa/core/data/html/pass/ofz39850-1.html
Binary files 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);
}