summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2018-01-29 10:18:37 +0100
committerMichael Stahl <mstahl@redhat.com>2018-01-29 10:41:37 +0100
commit88fe1bb839ab0de362295ba88c9ec6947655654a (patch)
tree5be51fff476ffda456fbec40afdae8e718cdedb2 /xmloff
parent75802ae40ae67737ae9e4f1a38434e0587affff6 (diff)
xmloff: add a comment too
Change-Id: Ic23c36250938009b17f4b916f0d13a097d018a0c
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/table/XMLTableExport.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/xmloff/source/table/XMLTableExport.cxx b/xmloff/source/table/XMLTableExport.cxx
index f7529a77ea94..30944401316c 100644
--- a/xmloff/source/table/XMLTableExport.cxx
+++ b/xmloff/source/table/XMLTableExport.cxx
@@ -609,18 +609,15 @@ void XMLTableExport::exportTableTemplates()
}
else
{
- // Below condition checks if any of the extended version of
- // XML are set
+ // checks if any of the extended version of ODF are set
if ((eVersion & SvtSaveOptions::ODFSVER_EXTENDED) != 0)
{
+ // tdf#106780 historically this wrong attribute was used
+ // for the name; write it if extended because LO < 5.3 can
+ // read only text:style-name, not the correct table:name
mrExport.AddAttribute(XML_NAMESPACE_TEXT, XML_STYLE_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
}
- else
- {
- mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName( xTableStyle->getName() ) );
- }
-
+ mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_NAME, GetExport().EncodeStyleName(xTableStyle->getName()));
}
SvXMLElementExport tableTemplate( mrExport, XML_NAMESPACE_TABLE, XML_TABLE_TEMPLATE, true, true );