Tag: cws_src680_dba30 User: fs Date: 05/04/06 00:19:18 Modified: /dba/dbaccess/source/filter/xml/ xmlDataSourceSetting.cxx
Log: #i46768# also properly write and read empty properties from the DataSource's Info sequence File Changes: Directory: /dba/dbaccess/source/filter/xml/ =========================================== File [changed]: xmlDataSourceSetting.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx?r1=1.5&r2=1.5.14.1 Delta lines: +9 -3 ------------------- --- xmlDataSourceSetting.cxx 10 Mar 2005 16:39:37 -0000 1.5 +++ xmlDataSourceSetting.cxx 6 Apr 2005 07:19:15 -0000 1.5.14.1 @@ -2,9 +2,9 @@ * * $RCSfile: xmlDataSourceSetting.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.5.14.1 $ * - * last change: $Author: vg $ $Date: 2005/03/10 16:39:37 $ + * last change: $Author: fs $ $Date: 2005/04/06 07:19:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -188,6 +188,12 @@ { if ( m_bIsList && !m_aInfoSequence.getLength() ) m_aSetting.Value <<= m_aInfoSequence; + + // if our property is of type string, but was empty, ensure that + // we don't add a VOID value + if ( !m_bIsList && ( m_aPropType.getTypeClass() == TypeClass_STRING ) && !m_aSetting.Value.hasValue() ) + m_aSetting.Value <<= ::rtl::OUString(); + m_rParent.addInfo(m_aSetting); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
