summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-30 18:40:39 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-01 03:00:56 +0100
commitb9410131861af3a5f54d0585dfc47e5f512e0320 (patch)
tree9933531f7d247c18fb6bf0732c51aa170ec7c86b /sc
parentd0f664014d02e02fbcfa80c118a0950f45513ada (diff)
make the validation tool happy
This is just fucking awesome. The MSO implementers notes mention this attribute and point to some extended information that is either missing or does not mention this attribute. To make it more funny the MSO validation complains about invalid values in this attribute for our export. Change-Id: Iacf1a6666f9f6124106952ae19ae5d5866bc8cf1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/excrecds.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excrecds.cxx b/sc/source/filter/excel/excrecds.cxx
index 01b2432a6062..9be9bfe530fc 100644
--- a/sc/source/filter/excel/excrecds.cxx
+++ b/sc/source/filter/excel/excrecds.cxx
@@ -519,7 +519,7 @@ void XclExpSheetProtection::SaveXml( XclExpXmlStream& rStrm )
sax_fastparser::FSHelperPtr& rWorksheet = rStrm.GetCurrentStream();
rWorksheet->singleElement( XML_sheetProtection,
XML_sheet, XclXmlUtils::ToPsz( true ),
- XML_password, sHash.getStr(),
+ XML_password, sHash.isEmpty()? NULL : sHash.getStr(),
XML_objects, pTabProtect->isOptionEnabled( ScTableProtection::OBJECTS ) ? NULL : XclXmlUtils::ToPsz( true ),
XML_scenarios, pTabProtect->isOptionEnabled( ScTableProtection::SCENARIOS ) ? NULL : XclXmlUtils::ToPsz( true ),
XML_formatCells, pTabProtect->isOptionEnabled( ScTableProtection::FORMAT_CELLS ) ? XclXmlUtils::ToPsz( false ) : NULL,