kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0105-only-write-new-element-and-attributes-in-ODF-1.2-ext.patch

f0633d
From a487e676ef96d1e6e2efa8680385720667790a60 Mon Sep 17 00:00:00 2001
f0633d
From: Markus Mohrhard <markus.mohrhard@googlemail.com>
f0633d
Date: Sat, 28 Dec 2013 08:13:12 +0100
f0633d
Subject: [PATCH 105/109] only write new element and attributes in ODF 1.2
f0633d
 extended
f0633d
f0633d
Change-Id: I038f200f500ef1c6a0815b6332fb17bb2f62282a
f0633d
Reviewed-on: https://gerrit.libreoffice.org/7221
f0633d
Reviewed-by: Eike Rathke <erack@redhat.com>
f0633d
Tested-by: Eike Rathke <erack@redhat.com>
f0633d
---
f0633d
 sc/source/filter/xml/xmlexprt.cxx | 2 +-
f0633d
 1 file changed, 1 insertion(+), 1 deletion(-)
f0633d
f0633d
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
f0633d
index 0fbc692..4f97260 100644
f0633d
--- a/sc/source/filter/xml/xmlexprt.cxx
f0633d
+++ b/sc/source/filter/xml/xmlexprt.cxx
f0633d
@@ -2709,7 +2709,7 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const Reference
f0633d
         AddAttribute( XML_NAMESPACE_TABLE, XML_PRINT, XML_FALSE);
f0633d
     SvXMLElementExport aElemT(*this, sElemTab, true, true);
f0633d
 
f0633d
-    if (pProtect && pProtect->isProtected())
f0633d
+    if (pProtect && pProtect->isProtected() && getDefaultVersion() > SvtSaveOptions::ODFVER_012)
f0633d
     {
f0633d
         if (pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS))
f0633d
             AddAttribute(XML_NAMESPACE_TABLE, XML_SELECT_PROTECTED_CELLS, XML_TRUE);
f0633d
-- 
f0633d
1.8.4.2
f0633d