sc/source/core/tool/compiler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 17478407d9c2ac06dd9fa65a4b8bcb14120ebec6 Author: Karthik Godha <[email protected]> AuthorDate: Fri Jan 23 14:36:11 2026 +0530 Commit: Karthik Godha <[email protected]> CommitDate: Mon Feb 16 02:25:07 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]> (cherry picked from commit b14a56012663adfe529b32fb78033a98af1b3847) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199424 Tested-by: Jenkins Reviewed-by: Karthik Godha <[email protected]> diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 3722165a1cfc..c9e81883fb0a 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -5422,7 +5422,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(),
