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