diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-28 08:13:12 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-01-06 11:40:20 +0000 |
commit | a487e676ef96d1e6e2efa8680385720667790a60 (patch) | |
tree | 359799b560eec56d3fdf0da52a7297563b9a8b40 /sc/source | |
parent | 6a7a73d278c300ac7519d1ec50e5a4495f174f89 (diff) |
only write new element and attributes in ODF 1.2 extended
Change-Id: I038f200f500ef1c6a0815b6332fb17bb2f62282a
Reviewed-on: https://gerrit.libreoffice.org/7221
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 0fbc69227fdb..4f9726011473 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2709,7 +2709,7 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const Reference<sheet::XSpreadshe AddAttribute( XML_NAMESPACE_TABLE, XML_PRINT, XML_FALSE); SvXMLElementExport aElemT(*this, sElemTab, true, true); - if (pProtect && pProtect->isProtected()) + if (pProtect && pProtect->isProtected() && getDefaultVersion() > SvtSaveOptions::ODFVER_012) { if (pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS)) AddAttribute(XML_NAMESPACE_TABLE, XML_SELECT_PROTECTED_CELLS, XML_TRUE); |