basic/source/runtime/runtime.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 1fc95f3bfa1eedc1d1f1dad00b8aae39e0f6047c
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Thu Nov 27 19:39:02 2025 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Fri Nov 28 00:12:07 2025 +0100

    !HAVE_FEATURE_SCRIPTING apparently needs SbiRuntime::isVBAEnabled now
    
    ...after 76aafa18b7a81363a642c5b0ea381ea71c5e5185 "tdf#162711 - VBASupport
    requires banker’s rounding for integer conversions", as linking started to 
fail
    with
    
    > wasm-ld: error: 
/home/sberg/lo-wasm-upstream/core/instdir/program/libsblo.a(sbxint.o): 
undefined symbol: SbiRuntime::isVBAEnabled()
    
    Change-Id: I579f300390eabfefd5f02c277771d5f8c937105c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194734
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 63ef87867549..b625b928bc2d 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -106,12 +106,6 @@ private:
 };
 }
 
-bool SbiRuntime::isVBAEnabled()
-{
-    SbiInstance* pInst = GetSbData()->pInst;
-    return pInst && pInst->pRun && pInst->pRun->bVBAEnabled;
-}
-
 void StarBASIC::SetVBAEnabled( bool bEnabled )
 {
     if ( bDocBasic )
@@ -372,6 +366,12 @@ SbiDllMgr* SbiInstance::GetDllMgr()
 
 #endif
 
+bool SbiRuntime::isVBAEnabled()
+{
+    SbiInstance* pInst = GetSbData()->pInst;
+    return pInst && pInst->pRun && pInst->pRun->bVBAEnabled;
+}
+
 // #39629 create NumberFormatter with the help of a static method now
 std::shared_ptr<SvNumberFormatter> const & SbiInstance::GetNumberFormatter()
 {

Reply via email to