sc/source/core/tool/compiler.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b14a56012663adfe529b32fb78033a98af1b3847
Author:     Karthik Godha <[email protected]>
AuthorDate: Fri Jan 23 14:36:11 2026 +0530
Commit:     Michael Stahl <[email protected]>
CommitDate: Mon Jan 26 12:20:24 2026 +0100

    sc: XLSX - Use correct index in svExternalName
    
    This is related to f85d860ccbebd99bc128218148e2992c9415f221, for
    `svExternalName` use the index calculated during export.
    
    bug-document: forum-mso-de-38936.xls
    
    Change-Id: I4a75a2432ab9bd6f46d36c46fe985bbc33252154
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197917
    Reviewed-by: Michael Stahl <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 85a599366d04..c209b59c3549 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -5377,7 +5377,8 @@ void ScCompiler::CreateStringFromExternal( 
OUStringBuffer& rBuffer, const Formul
     switch (t->GetType())
     {
         case svExternalName:
-            rBuffer.append(pConv->makeExternalNameStr( nFileId, *pFileName, 
t->GetString().getString()));
+            rBuffer.append(
+                pConv->makeExternalNameStr(nUsedFileId, *pFileName, 
t->GetString().getString()));
         break;
         case svExternalSingleRef:
             pConv->makeExternalRefStr(rDoc.GetSheetLimits(),

Reply via email to