sw/source/ui/vba/vbawindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0c201da2e1b26b38376e7fc05ba6418acef58876 Author: Tor Lillqvist <[email protected]> AuthorDate: Fri Jan 18 14:17:50 2019 +0200 Commit: Tor Lillqvist <[email protected]> CommitDate: Thu Sep 19 22:40:31 2019 +0200 Don't throw an exception, just ignore trying to set an unhandled WindowState End-user VB6 applications might not like the exception. Better to just ignore. Change-Id: I42718de7855079e38c7983db39180c184ab7224f (cherry picked from commit 0043408b027be8664dbf88093da538ba8bbbbe24) Reviewed-on: https://gerrit.libreoffice.org/79146 Reviewed-by: Tor Lillqvist <[email protected]> Tested-by: Tor Lillqvist <[email protected]> diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx index aba495a199b8..a404a323b9fa 100644 --- a/sw/source/ui/vba/vbawindow.cxx +++ b/sw/source/ui/vba/vbawindow.cxx @@ -109,7 +109,7 @@ SwVbaWindow::setWindowState( const uno::Any& _windowstate ) else if (nwindowState == word::WdWindowState::wdWindowStateNormal) pWork -> Restore(); else - throw uno::RuntimeException("Invalid Parameter" ); + SAL_WARN("sw.vba", "Unhandled window state " << nwindowState); } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
