diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-28 16:08:12 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2004-06-28 16:08:12 +0000 |
commit | 05bc0111750ecd18b7fab8212f4d4efb7399b714 (patch) | |
tree | 75aaf0ddc30b47852777f454d68fe4dd5286faab | |
parent | 7272ee64a1a9852866ecbf93032fdc47f112e782 (diff) |
INTEGRATION: CWS dba12 (1.13.6); FILE MERGED
2004/06/14 20:59:03 fs 1.13.6.2: RESYNC: (1.13-1.14); FILE MERGED
2004/05/17 13:27:39 fs 1.13.6.1: #i28806# more generous with the min date default
-rw-r--r-- | forms/source/component/Date.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx index fec6cd52063f..b44e56c0e0a2 100644 --- a/forms/source/component/Date.cxx +++ b/forms/source/component/Date.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Date.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: hr $ $Date: 2004-05-10 12:44:44 $ + * last change: $Author: hjs $ $Date: 2004-06-28 17:08:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -154,6 +154,18 @@ ODateModel::ODateModel(const Reference<XMultiServiceFactory>& _rxFactory) initValueProperty( PROPERTY_DATE, PROPERTY_ID_DATE ); setAggregateSet(m_xAggregateFastSet, getOriginalHandle(PROPERTY_ID_DATEFORMAT)); + + osl_incrementInterlockedCount( &m_refCount ); + try + { + if ( m_xAggregateSet.is() ) + m_xAggregateSet->setPropertyValue( PROPERTY_DATEMIN, makeAny( (sal_Int32)( ::Date( 1, 1, 1800 ).GetDate() ) ) ); + } + catch( const Exception& ) + { + OSL_ENSURE( sal_False, "ODateModel::ODateModel: caught an exception!" ); + } + osl_decrementInterlockedCount( &m_refCount ); } //------------------------------------------------------------------------------ |