diff options
author | Ingrid Halama <iha@openoffice.org> | 2010-05-17 18:19:37 +0200 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2010-05-17 18:19:37 +0200 |
commit | efa9d1559bd91572b9b7806f6387879db88fd669 (patch) | |
tree | 7810090718d2f7793ec451bc6805a2206e5be3b6 /chart2/source/controller | |
parent | 417c5223db83a7f5932ecbba12bed63e0f5c6f41 (diff) |
chart47: #i109770# #i110253# reduce assertions 'already disposed or closed'
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx index 14a20e133ff1..04f1ca37de9e 100644 --- a/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/ChartDocumentWrapper.cxx @@ -1499,6 +1499,16 @@ void SAL_CALL ChartDocumentWrapper::setDelegator( const uno::Reference< uno::XInterface >& rDelegator ) throw (uno::RuntimeException) { + if( m_bIsDisposed ) + { + if( rDelegator.is() ) + throw lang::DisposedException( + C2U("ChartDocumentWrapper is disposed" ), + static_cast< ::cppu::OWeakObject* >( this )); + else + return; + } + if( rDelegator.is()) { m_xDelegator = rDelegator; |