Kaydet (Commit) 545f8737 authored tarafından Adam Co's avatar Adam Co Kaydeden (comit) Miklos Vajna

Removed 'XML_lang' tag being auto-written in redline case

When there was a redline in a DOCX file that relates to formatting -
the DOCX exporter automatically assumed that if the 'after' properties
contains an 'XML_lang' node - then also the 'before' properties
should also contain the 'XML_lang' node - and this is wrong.

Change-Id: I383e10c11c228dd6847fd8eecb35c5c23c5f955e
Reviewed-on: https://gerrit.libreoffice.org/6900Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst a8c37880
......@@ -1500,23 +1500,6 @@ void DocxAttributeOutput::Redline( const SwRedlineData* pRedline)
FSNS( XML_w, XML_date ), aDate.getStr(),
FSEND );
if ( m_pCharLangAttrList )
{
if (m_pCharLangAttrList->hasAttribute(FSNS(XML_w, XML_val)))
{
m_pSerializer->mark();
m_pSerializer->startElementNS( XML_w, XML_rPr, FSEND );
sVal = m_pCharLangAttrList->getValue(FSNS(XML_w, XML_val));
sOVal = OUStringToOString(sVal, RTL_TEXTENCODING_UTF8);
m_pSerializer->startElementNS(XML_w, XML_lang,
FSNS(XML_w, XML_val), sOVal.getStr(),
FSEND);
m_pSerializer->endElementNS(XML_w, XML_lang);
m_pSerializer->endElementNS( XML_w, XML_rPr );
m_pSerializer->mergeTopMarks( sax_fastparser::MERGE_MARKS_PREPEND );
}
}
m_pSerializer->endElementNS( XML_w, XML_rPrChange );
break;
......
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