summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridctrl.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-05-10 09:05:07 +0000
committerKurt Zenker <kz@openoffice.org>2007-05-10 09:05:07 +0000
commit1d777185d827b1565b36ee319c4953dbc8c8ba07 (patch)
treea6c6255c9ea8741e3ca625dd1d66eea7d339cf7c /svx/source/fmcomp/gridctrl.cxx
parent37ca20c522257f2cff12042d0d45ccea8b8480f7 (diff)
INTEGRATION: CWS dba23a (1.80.36); FILE MERGED
2007/02/21 12:01:27 fs 1.80.36.2: #135384# exception safety in m_pSeekCursor->getRow 2007/02/21 12:01:09 fs 1.80.36.1: #135384# exception safety in m_pSeekCursor->getRow
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index ffba987b59..86e8f7ea3c 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: gridctrl.cxx,v $
*
- * $Revision: 1.80 $
+ * $Revision: 1.81 $
*
- * last change: $Author: obo $ $Date: 2007-01-23 11:38:38 $
+ * last change: $Author: kz $ $Date: 2007-05-10 10:05:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -105,6 +105,9 @@
#ifndef _TOOLS_RESID_HXX //autogen
#include <tools/resid.hxx>
#endif
+#ifndef TOOLS_DIAGNOSE_EX_H
+#include <tools/diagnose_ex.h>
+#endif
#ifndef _SV_SOUND_HXX //autogen
#include <vcl/sound.hxx>
@@ -1630,7 +1633,15 @@ void DbGridControl::setDataSource(const Reference< XRowSet >& _xCursor, sal_uInt
RowInserted(0, nRecordCount, sal_False);
if (m_xSeekRow->IsValid())
- m_nSeekPos = m_pSeekCursor->getRow() - 1;
+ try
+ {
+ m_nSeekPos = m_pSeekCursor->getRow() - 1;
+ }
+ catch( const Exception& )
+ {
+ DBG_UNHANDLED_EXCEPTION();
+ m_nSeekPos = -1;
+ }
}
else
{