sc/source/core/tool/compiler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b3d7ab12ac14212aa0bf605eb50b4b9ee1f23b2a Author: Karthik Godha <[email protected]> AuthorDate: Mon Jan 5 18:49:37 2026 +0530 Commit: Michael Stahl <[email protected]> CommitDate: Thu Jan 8 17:49:12 2026 +0100 tdf#170201: Use #NA! err string for array formulas This is related to 9eed2e4f491cb4f5432157eec77e6f5b525acb8f, instead of using '0' for empty values in array formulas use NotAvailable error string Change-Id: I811745e65d8dd75dbb2e53b918490e7bb66d6cfd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196652 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Michael Stahl <[email protected]> diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 8134f4168c81..76516b8b9555 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -5436,7 +5436,7 @@ void ScCompiler::CreateStringFromMatrix( OUStringBuffer& rBuffer, const FormulaT } } else if( pMatrix->IsEmpty( nC, nR ) ) - AppendDouble(rBuffer, 0); + rBuffer.append(ScGlobal::GetErrorString(FormulaError::NotAvailable)); else if( pMatrix->IsStringOrEmpty( nC, nR ) ) AppendString( rBuffer, pMatrix->GetString(nC, nR).getString() ); }
