dbaccess/source/ui/misc/TokenWriter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 116f3556716b1ba24682bf7d3853dae57954dd20 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Aug 5 20:03:20 2024 +0500 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Mon Aug 12 13:05:40 2024 +0200 Fix off-by-1 error Regression after commit af5a1b5925dbc816dced8813282d953fd5adbaaa Drop uses of css::uno::Sequence::getConstArray in dbaccess, 2024-04-30. Change-Id: Ifaecdeb2898f2e9089b1f893a1e9ba46352cc353 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171505 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> (cherry picked from commit aed5979ecc6befd64a024ba07064696f24640fec) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171765 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index 6009a7e1a63b..6dac55891f19 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -412,7 +412,7 @@ bool ORTFImportExport::Write() sColumnName = m_xResultSetMetaData->getColumnName(i); else { - sColumnName = aNames[i]; + sColumnName = aNames[i - 1]; Reference<XPropertySet> xColumn; xColumns->getByName(sColumnName) >>= xColumn; xColumn->getPropertyValue(PROPERTY_ALIGN) >>= nAlign;