summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-06-06 09:49:14 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-06-06 09:49:14 +0000
commit510865889c0f5d5198b485e8e343062d6b4c4ecc (patch)
tree17702647fafbcafa299dc00c900cfbaf08a414ea /dbaccess/source/ui/tabledesign
parent3ee5b4575bb9893e8f3f8479ad4bcec794c04130 (diff)
INTEGRATION: CWS dba07 (1.36.40); FILE MERGED
2003/05/20 11:35:16 oj 1.36.40.1: #109768# insert correct index
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 07477df699a0..58078f3026df 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: TEditControl.cxx,v $
*
- * $Revision: 1.36 $
+ * $Revision: 1.37 $
*
- * last change: $Author: hr $ $Date: 2003-03-19 17:53:02 $
+ * last change: $Author: vg $ $Date: 2003-06-06 10:49:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1778,7 +1778,7 @@ void OTableEditorCtrl::SetPrimaryKey( sal_Bool bSet )
OFieldDescription* pFieldDescr = (*aIter)->GetActFieldDescr();
if( pFieldDescr && (*aIter)->IsPrimaryKey() )
{
- nIndex = m_pRowList->end() - aIter;
+ nIndex = aIter - m_pRowList->begin();
AdjustFieldDescription(pFieldDescr,aDeletedPrimKeys,nIndex,bSet,sal_False);
}
}