diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 10:52:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 16:30:14 +0100 |
commit | 7b9228660f9d7c99caccc17f8cc4dd0e9b5048e2 (patch) | |
tree | fd08a52d048a7c296465118835963c161d335fe4 /sw | |
parent | bb5faa16aa61a927eea3507eeeb7a35ec1c7a7b7 (diff) |
ofz#6064 clear footnotes from tobe-deleted paragraph
Change-Id: I33f75adab35d43a4bbf51e33a0abcb5daeca93a3
Reviewed-on: https://gerrit.libreoffice.org/49344
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/htmlsect.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx index 1f838edd054c..818f90652f36 100644 --- a/sw/source/filter/html/htmlsect.cxx +++ b/sw/source/filter/html/htmlsect.cxx @@ -199,7 +199,10 @@ void SwHTMLParser::NewDivision( HtmlTokenId nToken ) aDelPam.GetPoint()->nNode = pStNd->EndOfSectionIndex() - 1; if (!PendingObjectsInPaM(aDelPam)) + { + ClearFootnotesInRange(aDelPam.GetMark()->nNode, aDelPam.GetPoint()->nNode); m_xDoc->getIDocumentContentOperations().DelFullPara(aDelPam); + } // update page style for( size_t i=0; i < m_xDoc->GetPageDescCnt(); i++ ) |