summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-09-11 09:02:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-09-11 12:12:21 +0100
commitfe2a249257a9fb4a994514bce5f49268f7bfd770 (patch)
tree3349547fefe2258e77251cdc9123f05269f93e8c
parent8b6402b926f5237f9e3730ffc8770e5472cb5903 (diff)
#i123198# catch and ignore uno exceptions in sfx2::sidebar::TabBar::Item::HandleClick()
Patch by: Herbert Duerr Scenario found by: Thorsten Wagner (cherry picked from commit 1a078f3584e8a288c0ec33f176638406423ade63)
-rw-r--r--sfx2/source/sidebar/TabBar.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 2cba26dc7435..167a74e5a6cb 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -287,7 +287,12 @@ Image TabBar::GetItemImage (const DeckDescriptor& rDeckDescriptor) const
IMPL_LINK(TabBar::Item, HandleClick, Button*, EMPTYARG)
{
- maDeckActivationFunctor(msDeckId);
+ try
+ {
+ maDeckActivationFunctor(msDeckId);
+ }
+ catch( const ::com::sun::star::uno::Exception&) {} // workaround for #i123198#
+
return 1;
}