off-by-one error: columns are numbered from one, but the array from 0

Change-Id: I14ef451999fa1f9d57757a9e231fc66be4e53f3a
This commit is contained in:
Lionel Elie Mamane
2016-03-21 16:11:45 +01:00
parent 93e6075173
commit 57bf3a3340

View File

@@ -842,7 +842,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 )
{
rtl::Reference<ORowSetValueVector> aCopy(new ORowSetValueVector(*m_aParameterValueForCache.get()));