This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 81f7a00d207c9d558702b71ca7d2f8eb373321e9 Author: Jim Jagielski <[email protected]> AuthorDate: Tue Nov 3 07:56:41 2026 -0500 sc: sorting kept error-only cells in place when their errors differed Two formula cells with empty token arrays counted as equal formulas, so SwapRow skipped them. --- main/sc/source/core/data/column.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/sc/source/core/data/column.cxx b/main/sc/source/core/data/column.cxx index b1ab1c05d6..c09046cc9a 100644 --- a/main/sc/source/core/data/column.cxx +++ b/main/sc/source/core/data/column.cxx @@ -929,7 +929,7 @@ void ScColumn::SwapRow(SCROW nRow1, SCROW nRow2) ScTokenArray* pCode1 = pFmlaCell1->GetCode(); ScTokenArray* pCode2 = pFmlaCell2->GetCode(); - if (pCode1->GetLen() == pCode2->GetLen()) // nicht-UPN + if (pCode1->GetLen() == pCode2->GetLen() && pCode1->GetCodeError() == pCode2->GetCodeError()) // nicht-UPN { sal_Bool bEqual = sal_True; sal_uInt16 nLen = pCode1->GetLen();
