diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-01-18 14:49:24 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-01-21 11:28:29 +0200 |
commit | 87b6dac1581cf224f67e86a048deef5fed2e72f9 (patch) | |
tree | 31d665d923f31d69da1cf360a66fd93a08f671d4 /sw | |
parent | a3b143079f58be23eaccccd2fff31bc402c67201 (diff) |
Try ignoring RuntimeException in ComḿandBars(), VB6 clients don't like them?
Change-Id: Ia577174fac926295db439349f6caca178b363ba0
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbaapplication.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx index b9c8bd5f4055..9c7937c4ee62 100644 --- a/sw/source/ui/vba/vbaapplication.cxx +++ b/sw/source/ui/vba/vbaapplication.cxx @@ -167,7 +167,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 |