[Libreoffice-commits] .: Branch 'libreoffice-3-6-3' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 22 06:49:10 PDT 2012


 sw/source/filter/ww8/docxattributeoutput.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit d4287fb59bc2bc6cf54fe0ea2786b48ad3afa982
Author: Korrawit Pruegsanusak <detective.conan.1412 at gmail.com>
Date:   Fri Oct 12 21:09:42 2012 +0700

    Fix fdo#47669: also check if we started the tag before ending it
    
    The problem is we created imbalance end tag </w:hyperlink> which shouldn't
    be there. So, place a check before inserting end tag should help.
    
    Inspired by (read: copied from) c1c2688912e769dfd7654e11e87dae380a8ce1eb ;)
    
    (cherry picked from commit 3b042335208cb2c995f4860bf8ba3bd1e2f2e859)
    
    Change-Id: Ic933f6da44c788cba48bb2fe6fa29658985310b6
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>
    Signed-off-by: Michael Stahl <mstahl at redhat.com>
    Signed-off-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 179c2f6..387c9ea 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -546,7 +546,11 @@ void DocxAttributeOutput::EndRun()
 
     if ( m_closeHyperlinkInPreviousRun )
     {
-        m_pSerializer->endElementNS( XML_w, XML_hyperlink );
+        if ( m_startedHyperlink )
+        {
+            m_pSerializer->endElementNS( XML_w, XML_hyperlink );
+            m_startedHyperlink = false;
+        }
         m_closeHyperlinkInPreviousRun = false;
     }
 


More information about the Libreoffice-commits mailing list