diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-02 16:06:25 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-02 16:06:51 +0200 |
commit | b5483b46f6190dd22d327313dfbee22897e8732b (patch) | |
tree | a1817aeada0d629c3600458d61e8c13a6c167c03 /basic | |
parent | ed831436cdc4513add55324a9cd2c125e8bb7f2e (diff) |
SbiRuntime::isVBAEnabled() needs to be guarded with #if HAVE_FEATURE_SCRIPTING
Change-Id: I7fab0c946c13a9779fad05f88be6ae6a9da93775
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 0b1698b9eabc..5996d1590903 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4935,7 +4935,11 @@ bool implDateSerial( sal_Int16 nYear, sal_Int16 nMonth, sal_Int16 nDay, bool bUs else #endif { - if ( 0 <= nYear && nYear < 100 && (bUseTwoDigitYear || SbiRuntime::isVBAEnabled()) ) + if ( 0 <= nYear && nYear < 100 && (bUseTwoDigitYear +#if HAVE_FEATURE_SCRIPTING + || SbiRuntime::isVBAEnabled() +#endif + ) ) { nYear += 1900; } |