User: hr Date: 2006/08/15 03:47:52 Modified: dba/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx
Log: INTEGRATION: CWS dba30 (1.5.14); FILE MERGED 2005/10/13 14:58:07 fs 1.5.14.3: RESYNC: (1.6-1.7); FILE MERGED 2005/09/30 06:36:22 fs 1.5.14.2: RESYNC: (1.5-1.6); FILE MERGED 2005/04/06 07:19:15 fs 1.5.14.1: #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.7&r2=1.8 Delta lines: +6 -0 ------------------- --- xmlDataSourceSetting.cxx 23 Sep 2005 12:09:43 -0000 1.7 +++ xmlDataSourceSetting.cxx 15 Aug 2006 10:47:50 -0000 1.8 @@ -170,6 +170,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]
