summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2016-03-21 16:11:45 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-24 12:39:08 +0000
commit1f7af80f020a9114d7b6b4014a4ebb71cb81d8a1 (patch)
treeaf3292cae5392454e969f54938d2142709b2217a
parent01ba19094272cb661f781c091fd11f3a01dc1ea0 (diff)
off-by-one error: columns are numbered from one, but the array from 0
Change-Id: I14ef451999fa1f9d57757a9e231fc66be4e53f3a Reviewed-on: https://gerrit.libreoffice.org/23406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--dbaccess/source/core/api/KeySet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index 6b2400efd826..58be2f2ae20b 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -944,7 +944,7 @@ void OKeySet::copyRowValue(const ORowSetRow& _rInsertRow,ORowSetRow& _rKeyRow,sa
for(sal_Int32 i = 1;aParaIter != aParaEnd;++aParaIter,++aParaValuesIter,++i)
{
ORowSetValue aValue(*aParaValuesIter);
- aValue.setSigned(m_aSignedFlags[aParaIter->second.nPosition]);
+ aValue.setSigned(m_aSignedFlags[aParaIter->second.nPosition-1]);
if ( (_rInsertRow->get())[aParaIter->second.nPosition] != aValue )
{
ORowSetValueVector aCopy(m_aParameterValueForCache);