[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - vbahelper/source

Tor Lillqvist tml at collabora.com
Tue Jun 5 11:08:33 UTC 2018


 vbahelper/source/vbahelper/vbaapplicationbase.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bc836c7b0fb6a3bc10c3e59f200c2ede0deeafb0
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Jun 5 13:49:42 2018 +0300

    Also in getInteractive() we want to return true, not false, if no model
    
    Change-Id: I6b2d24792a16e934f7386c235b7d0cd78300b2b3
    Reviewed-on: https://gerrit.libreoffice.org/55328
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
index e31476e4ddd2..0c67ea1a4fb9 100644
--- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx
+++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx
@@ -240,7 +240,7 @@ sal_Bool SAL_CALL VbaApplicationBase::getInteractive()
 {
     uno::Reference< frame::XModel > xModel = getCurrentDocument();
     if (!xModel.is())
-        return false;
+        return true;
     uno::Reference< frame::XFrame > xFrame( xModel->getCurrentController()->getFrame(), uno::UNO_QUERY_THROW );
     uno::Reference< awt::XWindow2 > xWindow( xFrame->getContainerWindow(), uno::UNO_QUERY_THROW );
 


More information about the Libreoffice-commits mailing list