summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-01-18 14:17:50 +0200
committerTor Lillqvist <tml@collabora.com>2019-01-21 11:28:10 +0200
commita3b143079f58be23eaccccd2fff31bc402c67201 (patch)
tree1390fb4978d6aead67b2b67823e025fdfb2c4294
parentde0105a3093beca09830188623c9c54c8095b2c6 (diff)
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
-rw-r--r--sw/source/ui/vba/vbawindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx
index fc914cc5769b..b958655fafc0 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);
}
}