Kaydet (Commit) a3b14307 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst de0105a3
...@@ -109,7 +109,7 @@ SwVbaWindow::setWindowState( const uno::Any& _windowstate ) ...@@ -109,7 +109,7 @@ SwVbaWindow::setWindowState( const uno::Any& _windowstate )
else if (nwindowState == word::WdWindowState::wdWindowStateNormal) else if (nwindowState == word::WdWindowState::wdWindowStateNormal)
pWork -> Restore(); pWork -> Restore();
else else
throw uno::RuntimeException("Invalid Parameter" ); SAL_WARN("sw.vba", "Unhandled window state " << nwindowState);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment