Kaydet (Commit) d40c30e4 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix assert on export of ooo40760-1.sxw to docx

and a pile more

Change-Id: I7334233c789bb0ed7a60387ef7d84dd34ab5a187
(cherry picked from commit 3185b6c8)
üst 5d08e373
......@@ -270,6 +270,14 @@ DECLARE_OOXMLEXPORT_TEST(testOldComplexMergeTableInTable, "ooo96040-2.odt")
return;
}
DECLARE_OOXMLEXPORT_TEST(testHyperlinkContainingPlaceholderField, "hyperlink-field.odt")
{
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
if (!pXmlDoc)
return;
}
DECLARE_OOXMLEXPORT_TEST(testTablePreferredWidth, "tablePreferredWidth.docx")
{
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
......
......@@ -1058,11 +1058,6 @@ void DocxAttributeOutput::EndRun()
{
StartField_Impl( *pIt );
if ( m_pHyperlinkAttrList )
{
m_nFieldsInHyperlink++;
}
// Remove the field from the stack if only the start has to be written
// Unknown fields should be removed too
if ( !pIt->bClose || ( pIt->eType == ww::eUNKNOWN ) )
......@@ -1070,6 +1065,11 @@ void DocxAttributeOutput::EndRun()
pIt = m_Fields.erase( pIt );
continue;
}
if ( m_pHyperlinkAttrList )
{
m_nFieldsInHyperlink++;
}
}
++pIt;
}
......
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