[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jan 18 12:50:25 UTC 2019


 sw/source/ui/vba/vbaapplication.cxx |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit f5499236c69d602ae518359c8e3e7d5e239b8eda
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Jan 18 14:49:24 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Jan 18 14:49:52 2019 +0200

    Try ignoring RuntimeException in ComḿandBars(), VB6 clients don't like them?
    
    Change-Id: Ia577174fac926295db439349f6caca178b363ba0

diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index ff1952e42a4c..b423cf3b63b1 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -166,7 +166,14 @@ SwVbaApplication::getOptions()
 uno::Any SAL_CALL
 SwVbaApplication::CommandBars( const uno::Any& aIndex )
 {
-    return VbaApplicationBase::CommandBars( aIndex );
+    try
+    {
+        return VbaApplicationBase::CommandBars( aIndex );
+    }
+    catch (const uno::RuntimeException&)
+    {
+        return uno::Any();
+    }
 }
 
 uno::Reference< word::XSelection > SAL_CALL


More information about the Libreoffice-commits mailing list