summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2013-12-02 18:08:53 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-11 08:19:56 +0000
commit545f87379d1a9afb66bb9e4e5f64243f02729357 (patch)
tree35bd6b53cdba244eb4b68b53c5e08ced219c86ca /sw
parenta8c378805a5b384e46bd0fd292fb6f7142aca2dc (diff)
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/6900 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 4ee565631954..f580b77f0c56 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -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;