From 16e8ffbd5ec1fe7b81835ea6584547669d55d751 Mon Sep 17 00:00:00 2001 From: Heena Gupta Date: Fri, 29 May 2015 16:42:34 +0530 Subject: tdf#91378-Empty Custom Properties are lost while saving in .pptx format Conflicts: sd/qa/unit/export-tests.cxx Reviewed on: https://gerrit.libreoffice.org/15966 Change-Id: Ibc24ab9633b51fe41ad483121646cc391319fe6f --- oox/source/core/xmlfilterbase.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'oox') diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index 4ef16d0c6bce..f1c80df9a97f 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -539,8 +539,6 @@ OUString XmlFilterBase::addRelation( const Reference< XOutputStream >& rOutputSt static void writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const OUString& sValue ) { - if( sValue.isEmpty() ) - return; pDoc->startElement( nXmlElement, FSEND ); pDoc->writeEscaped( sValue ); pDoc->endElement( nXmlElement ); @@ -745,10 +743,6 @@ writeCustomProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xP { if ( !aprop[n].Name.isEmpty() ) { - // Ignore empty string property as well. - if (aprop[n].Value.has() && aprop[n].Value.get().isEmpty()) - continue; - OString aName = OUStringToOString( aprop[n].Name, RTL_TEXTENCODING_ASCII_US ); // pid starts from 2 not from 1 as MS supports pid from 2 pAppProps->startElement( XML_property , -- cgit