diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-03-18 14:37:10 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-03-18 14:37:10 +0100 |
commit | 32feee91361deef53c3077f2baf941f37e7302d5 (patch) | |
tree | cf60ad07b7fb1ec89244cc080577b10add1fb5df /sd/source/ui/slidesorter/model | |
parent | 7f2bd815816cf70719b5de8af78f1c86545fcc60 (diff) |
slidecopy: use DBG_UNHANDLED_EXCEPTION instead of OSL_ASSERT, as the former will also print you the exception type and message
Diffstat (limited to 'sd/source/ui/slidesorter/model')
-rw-r--r-- | sd/source/ui/slidesorter/model/SlideSorterModel.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx index 4f21e48cce93..fa1976c24c81 100644 --- a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx +++ b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx @@ -53,6 +53,8 @@ #include "sdpage.hxx" #include "FrameView.hxx" +#include <tools/diagnose_ex.h> + using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -228,13 +230,9 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli return nNumber; } } - catch (beans::UnknownPropertyException&) - { - OSL_ASSERT(false); - } - catch (lang::DisposedException&) + catch (uno::Exception&) { - OSL_ASSERT(false); + DBG_UNHANDLED_EXCEPTION(); } } |