diff options
author | Pascal Junck <pjunck@openoffice.org> | 2004-10-22 10:36:46 +0000 |
---|---|---|
committer | Pascal Junck <pjunck@openoffice.org> | 2004-10-22 10:36:46 +0000 |
commit | 1bb80f4d8aba7a2f80628b4e869b282c2ce65c9a (patch) | |
tree | 7b17639e74b85a222265c47b186acacd242760a4 /toolkit | |
parent | a0b50ac4903d3ef4723c6573e26a561a2209a8c3 (diff) |
INTEGRATION: CWS dba17 (1.67.36); FILE MERGED
2004/09/08 13:36:53 fs 1.67.36.1: #i33728# itemStateChanged: catch exceptions (nobody else will do)
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index dea40ccc8c1f..fd76d1f309c9 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unocontrols.cxx,v $ * - * $Revision: 1.67 $ + * $Revision: 1.68 $ * - * last change: $Author: obo $ $Date: 2004-07-05 15:57:14 $ + * last change: $Author: pjunck $ $Date: 2004-10-22 11:36:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2198,7 +2198,20 @@ void UnoListBoxControl::itemStateChanged( const awt::ItemEvent& rEvent ) throw(u { ImplUpdateSelectedItemsProperty(); if ( maItemListeners.getLength() ) - maItemListeners.itemStateChanged( rEvent ); + { + try + { + maItemListeners.itemStateChanged( rEvent ); + } + catch( const Exception& e ) + { +#if OSL_DEBUG_LEVEL > 0 + ::rtl::OString sMessage( "UnoListBoxControl::itemStateChanged: caught an exception:\n" ); + sMessage += ::rtl::OString( e.Message.getStr(), e.Message.getLength(), RTL_TEXTENCODING_ASCII_US ); + OSL_ENSURE( sal_False, sMessage.getStr() ); +#endif + } + } } awt::Size UnoListBoxControl::getMinimumSize( ) throw(uno::RuntimeException) |