sc/source/core/tool/interpr8.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
New commits: commit ff3955db7161b8644699d7a0128ec4a6e7e525ec Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Aug 20 01:12:05 2020 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Thu Aug 20 02:14:40 2020 +0200 Resolves: tdf#109409 TEXTJOIN() CONCAT() handle array/matrix row-wise ... like references, instead of column-wise. Change-Id: If3ada9b197dd15c95b0da50464c70844fb7685ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101034 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sc/source/core/tool/interpr8.cxx b/sc/source/core/tool/interpr8.cxx index 95580dde72db..1ab5a79aee30 100644 --- a/sc/source/core/tool/interpr8.cxx +++ b/sc/source/core/tool/interpr8.cxx @@ -1474,9 +1474,9 @@ void ScInterpreter::ScConcat_MS() SetError(FormulaError::IllegalArgument); else { - for ( SCSIZE j = 0; j < nC; j++ ) + for (SCSIZE k = 0; k < nR; ++k) { - for (SCSIZE k = 0; k < nR; k++ ) + for (SCSIZE j = 0; j < nC; ++j) { if ( pMat->IsStringOrEmpty( j, k ) ) { @@ -1603,9 +1603,9 @@ void ScInterpreter::ScTextJoin_MS() SetError(FormulaError::IllegalArgument); else { - for ( SCSIZE j = 0; j < nC; j++ ) + for (SCSIZE k = 0; k < nR; ++k) { - for (SCSIZE k = 0; k < nR; k++ ) + for (SCSIZE j = 0; j < nC; ++j) { if ( !pMat->IsEmpty( j, k ) ) { @@ -1783,9 +1783,9 @@ void ScInterpreter::ScTextJoin_MS() else { OUString aStr; - for ( SCSIZE j = 0; j < nC; j++ ) + for (SCSIZE k = 0; k < nR; ++k) { - for (SCSIZE k = 0; k < nR; k++ ) + for (SCSIZE j = 0; j < nC; ++j) { if ( !pMat->IsEmpty( j, k ) ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits