summaryrefslogtreecommitdiff
path: root/sfx2
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:15:08 +0100
commit9538dd8a2b2f08b9920486cb4340fc2aae191fd4 (patch)
treeaab82d186179813f144762fa97d0275a1849d405 /sfx2
parentcda1335e227ce7b3c9e1a1514546deeda26ee396 (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) (cherry picked from commit fe2a249257a9fb4a994514bce5f49268f7bfd770)
Diffstat (limited to 'sfx2')
-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 1cbd18b544e6..52e06756af7f 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;
}