summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-11 14:45:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-11 16:56:15 +0200
commit3ad8347f25935d60e55ff12fd1844001a50bedc4 (patch)
tree0892f023400d33c2656e60dc0afbf45e276fcdb3 /sc/source/core
parent54c2de7e77dad1a1151c074f2ec5bfe1527d4d12 (diff)
add some --disable-scripting fixes
Change-Id: I28c4d38a035201acc2b0e5acc5908c4e74ae80e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120327 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/documen2.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 1db11be0c777..28f19df43539 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -87,6 +87,7 @@
#include <listenercontext.hxx>
#include <datamapper.hxx>
#include <drwlayer.hxx>
+#include <config_features.h>
using namespace com::sun::star;
@@ -1026,11 +1027,13 @@ sal_uLong ScDocument::TransferTab( ScDocument& rSrcDoc, SCTAB nSrcPos,
if ( pSrcShell )
{
OUString aLibName("Standard");
+#if HAVE_FEATURE_SCRIPTING
const BasicManager *pBasicManager = pSrcShell->GetBasicManager();
if (pBasicManager && !pBasicManager->GetName().isEmpty())
{
aLibName = pSrcShell->GetBasicManager()->GetName();
}
+#endif
OUString sSource;
uno::Reference< script::XLibraryContainer > xLibContainer = pSrcShell->GetBasicContainer();
uno::Reference< container::XNameContainer > xLib;