diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-03-18 09:00:17 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-03-18 09:00:17 +0000 |
commit | 9b872ceee7241221cbde4f24ec5d54bdffb22f29 (patch) | |
tree | c94dada4b688c9fbf705dd1a62abe124b714032d /svx/source/fmcomp/gridctrl.cxx | |
parent | 2d84edc51e2fcb354df9c7f84635b21c19d2485f (diff) |
INTEGRATION: CWS dba25 (1.70.202); FILE MERGED
2005/03/07 10:08:29 oj 1.70.202.1: #120093# add try catch around getBookmark call
Diffstat (limited to 'svx/source/fmcomp/gridctrl.cxx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 791bbcf82c..0ff6fa1058 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gridctrl.cxx,v $ * - * $Revision: 1.70 $ + * $Revision: 1.71 $ * - * last change: $Author: obo $ $Date: 2005-01-05 12:19:45 $ + * last change: $Author: obo $ $Date: 2005-03-18 10:00:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -962,10 +962,20 @@ void DbGridRow::SetState(CursorWrapper* pCur, sal_Bool bPaintCursor) m_bIsNew = sal_False; } - if (!m_bIsNew && IsValid()) - m_aBookmark = pCur->getBookmark(); - else + try + { + if (!m_bIsNew && IsValid()) + m_aBookmark = pCur->getBookmark(); + else + m_aBookmark = Any(); + } + catch(SQLException&) + { + OSL_ENSURE(0,"SQLException catched while getting the bookmark"); m_aBookmark = Any(); + m_eStatus = GRS_INVALID; + m_bIsNew = sal_False; + } } else { |