[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Wed Feb 7 15:30:37 UTC 2018


 sw/source/filter/html/htmlsect.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 7b9228660f9d7c99caccc17f8cc4dd0e9b5048e2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Feb 7 10:52:41 2018 +0000

    ofz#6064 clear footnotes from tobe-deleted paragraph
    
    Change-Id: I33f75adab35d43a4bbf51e33a0abcb5daeca93a3
    Reviewed-on: https://gerrit.libreoffice.org/49344
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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++ )


More information about the Libreoffice-commits mailing list