Kaydet (Commit) bc836c7b authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Michael Meeks

Also in getInteractive() we want to return true, not false, if no model

Change-Id: I6b2d24792a16e934f7386c235b7d0cd78300b2b3
Reviewed-on: https://gerrit.libreoffice.org/55328Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst dd2752ca
...@@ -240,7 +240,7 @@ sal_Bool SAL_CALL VbaApplicationBase::getInteractive() ...@@ -240,7 +240,7 @@ sal_Bool SAL_CALL VbaApplicationBase::getInteractive()
{ {
uno::Reference< frame::XModel > xModel = getCurrentDocument(); uno::Reference< frame::XModel > xModel = getCurrentDocument();
if (!xModel.is()) if (!xModel.is())
return false; return true;
uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW ); uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
uno::Reference< awt::XWindow2 > xWindow( xFrame->getContainerWindow(), uno::UNO_QUERY_THROW ); uno::Reference< awt::XWindow2 > xWindow( xFrame->getContainerWindow(), uno::UNO_QUERY_THROW );
......
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