[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sw/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 19 20:41:27 UTC 2019
sw/source/ui/vba/vbawindow.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0c201da2e1b26b38376e7fc05ba6418acef58876
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Jan 18 14:17:50 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
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 <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
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);
}
}
More information about the Libreoffice-commits
mailing list