diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-28 08:13:12 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-28 12:51:18 +0100 |
commit | ff74eafbe6aae254e49abb4a0b93160825e4a9d7 (patch) | |
tree | b50137645336aa5889b3652766390227ca72aee2 | |
parent | fix invalid string access in OUString::copy (diff) | |
download | core-ff74eafbe6aae254e49abb4a0b93160825e4a9d7.tar.gz core-ff74eafbe6aae254e49abb4a0b93160825e4a9d7.zip |
only write new element and attributes in ODF 1.2 extended
Change-Id: I038f200f500ef1c6a0815b6332fb17bb2f62282a
m--------- | dictionaries | 0 | ||||
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/dictionaries b/dictionaries -Subproject 569915c40dc4b3df1f75abe9e1202e0d66f0328 +Subproject f1a4ecab4b10fe7e5daadd6529516d5ffeba0fd diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 8defd8aef7cf..a0bc8075371a 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -2883,7 +2883,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); |