summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-06-05 13:49:42 +0300
committerMichael Meeks <michael.meeks@collabora.com>2018-06-05 13:08:12 +0200
commitbc836c7b0fb6a3bc10c3e59f200c2ede0deeafb0 (patch)
tree00b1ec1503c7822cc3d1228aa46d2962f5b8afb4 /vbahelper/source
parentdd2752ca7bbc4f230e6430a0a295ea6d1fadf6a4 (diff)
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@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/vbahelper/vbaapplicationbase.cxx2
1 files changed, 1 insertions, 1 deletions
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 );