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

Ignore RuntimeException in Application.WindowState setter

Probably helps VB6 clients.

Change-Id: I3a1072e6ededbd0322c4b0dcd0ef4b16ace215d1
üst c06a3f33
......@@ -290,12 +290,18 @@ sal_Int32 SAL_CALL SwVbaApplication::getWindowState()
void SAL_CALL SwVbaApplication::setWindowState( sal_Int32 _windowstate )
{
auto xWindow = getActiveWindow();
if (xWindow.is())
try
{
auto xWindow = getActiveWindow();
if (xWindow.is())
{
uno::Any aState;
aState <<= _windowstate;
xWindow->setWindowState( aState );
}
}
catch (const uno::RuntimeException&)
{
uno::Any aState;
aState <<= _windowstate;
xWindow->setWindowState( aState );
}
}
......
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