Kaydet (Commit) 7813bd31 authored tarafından Miklos Vajna's avatar Miklos Vajna

cp#1000015 DOCX export: fix not-well-formed XML on redline end + hyperlink

Change-Id: I3a87a0277952ba0a422df8988151f8b14e166e06
üst eb3942a2
......@@ -1548,6 +1548,13 @@ DECLARE_OOXML_TEST(testFdo69644, "fdo69644.docx")
assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tblGrid/w:gridCol", 5);
}
DECLARE_OOXML_TEST(testCp1000015, "cp1000015.odt")
{
// Redline and hyperlink end got exported in an incorrect order.
getParagraph(1, "Hello.");
getParagraph(2, "http://www.google.com/");
}
#endif
CPPUNIT_PLUGIN_IMPLEMENT();
......
......@@ -712,6 +712,9 @@ void DocxAttributeOutput::EndRun()
WritePostponedMath();
WritePendingPlaceholder();
// if there is some redlining in the document, output it
EndRedline();
if ( m_closeHyperlinkInThisRun )
{
if ( m_startedHyperlink )
......@@ -729,9 +732,6 @@ void DocxAttributeOutput::EndRun()
delete m_Fields.front().pField;
m_Fields.erase( m_Fields.begin( ) );
}
// if there is some redlining in the document, output it
EndRedline();
}
void DocxAttributeOutput::WriteCommentRanges()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment