sw/source/ui/vba/vbaapplication.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit f5499236c69d602ae518359c8e3e7d5e239b8eda Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Fri Jan 18 14:49:24 2019 +0200 Commit: Tor Lillqvist <t...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits