summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-09-27 13:53:55 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-09-27 13:53:55 +0200
commita766f873e3161648532034edbbea3fae87ecca7f (patch)
tree09116d477b65c81df6727cbf533cccc26f51e77d /connectivity
parent270730ef92d88a683f1af08165a1ff71aae3eb07 (diff)
dba34a: fix off-by-one in previous fix
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/fanalyzer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/file/fanalyzer.cxx b/connectivity/source/drivers/file/fanalyzer.cxx
index 9f1017d3ad..1a497905e7 100644
--- a/connectivity/source/drivers/file/fanalyzer.cxx
+++ b/connectivity/source/drivers/file/fanalyzer.cxx
@@ -292,9 +292,9 @@ void OSQLAnalyzer::setSelectionEvaluationResult(OValueRefRow& _pRow,const ::std:
if ( aIter->second.isValid() )
{
// the first column (index 0) is for convenience only. The first real select column is no 1.
- sal_Int32 map = nPos + 1;
+ sal_Int32 map = nPos;
if ( nPos < static_cast< sal_Int32 >( _rColumnMapping.size() ) )
- map = _rColumnMapping[nPos] + 1;
+ map = _rColumnMapping[nPos];
if ( map > 0 )
aIter->second->startSelection( (_pRow->get())[map] );
}