[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sfx2/source

Herbert Dürr hdu at apache.org
Wed Sep 11 03:11:22 PDT 2013


 sfx2/source/sidebar/TabBar.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 1a078f3584e8a288c0ec33f176638406423ade63
Author: Herbert Dürr <hdu at apache.org>
Date:   Wed Sep 11 09:02:57 2013 +0000

    #i123198# catch and ignore uno exceptions in sfx2::sidebar::TabBar::Item::HandleClick()
    
    Patch by: Herbert Duerr
    Scenario found by: Thorsten Wagner

diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx
index 184e13f..5e1a2c5 100644
--- a/sfx2/source/sidebar/TabBar.cxx
+++ b/sfx2/source/sidebar/TabBar.cxx
@@ -309,7 +309,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;
 }
 


More information about the Libreoffice-commits mailing list