diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-06-06 09:49:25 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-06-06 09:49:25 +0000 |
commit | 980fcb74a70772030a4be0b8b439fd248882ce7d (patch) | |
tree | 29f88797d3ff13559dd96b379ed962a452e9c0ea /dbaccess/source/ui/tabledesign | |
parent | 510865889c0f5d5198b485e8e343062d6b4c4ecc (diff) |
INTEGRATION: CWS dba07 (1.8.40); FILE MERGED
2003/05/20 11:35:17 oj 1.8.40.1: #109768# insert correct index
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableUndo.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index eb4c3eac9281..5a62d274663a 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TableUndo.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2003-03-19 17:53:04 $ + * last change: $Author: vg $ $Date: 2003-06-06 10:49:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -491,6 +491,7 @@ void OPrimKeyUndoAct::Undo() // Die eingefuegten Keys loeschen for( long nIndex = m_aInsKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aInsKeys.NextSelected() ) { + OSL_ENSURE(nIndex <= pRowList->size(),"Index for undo isn't valid!"); pRow = (*pRowList)[nIndex]; pRow->SetPrimaryKey( FALSE ); } @@ -499,6 +500,7 @@ void OPrimKeyUndoAct::Undo() // Die geloeschten Keys herstellen for( nIndex = m_aDelKeys.FirstSelected(); nIndex != SFX_ENDOFSELECTION; nIndex=m_aDelKeys.NextSelected() ) { + OSL_ENSURE(nIndex <= pRowList->size(),"Index for undo isn't valid!"); pRow = (*pRowList)[nIndex]; pRow->SetPrimaryKey( TRUE ); } |