sc/source/core/tool/compiler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2907144664028053d0d1bf565383a14f5a7e5957 Author: Karthik Godha <[email protected]> AuthorDate: Fri Jan 23 14:36:11 2026 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Wed Feb 4 19:03:40 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/+/198490 diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index e5213e33e51a..1cf88197e923 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(),
