Tag: cws_src680_dba202a User: fs Date: 05/11/24 06:15:35 Modified: /dba/dbaccess/source/ui/browser/ brwctrlr.cxx
Log: #127848# some exception safety File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: brwctrlr.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/brwctrlr.cxx?r1=1.89&r2=1.89.26.1 Delta lines: +30 -12 --------------------- --- brwctrlr.cxx 23 Sep 2005 12:19:18 -0000 1.89 +++ brwctrlr.cxx 24 Nov 2005 14:15:31 -0000 1.89.26.1 @@ -4,9 +4,9 @@ * * $RCSfile: brwctrlr.cxx,v $ * - * $Revision: 1.89 $ + * $Revision: 1.89.26.1 $ * - * last change: $Author: hr $ $Date: 2005/09/23 12:19:18 $ + * last change: $Author: fs $ $Date: 2005/11/24 14:15:31 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -148,6 +148,9 @@ #ifndef _TOOLS_COLOR_HXX #include <tools/color.hxx> #endif +#ifndef TOOLS_DIAGNOSE_EX_H +#include <tools/diagnose_ex.h> +#endif #ifndef _COMPHELPER_SEQUENCE_HXX_ #include <comphelper/sequence.hxx> #endif @@ -2367,15 +2370,30 @@ { Reference< ::com::sun::star::sdbcx::XRowLocate > xCursor(getRowSet(), UNO_QUERY); - DBG_ASSERT(xCursor.is(), "SbaXDataBrowserController::OnCanceledNotFound : shit happens. sometimes. but this is simply impossible !"); // move the cursor + try + { + DBG_ASSERT(xCursor.is(), "SbaXDataBrowserController::OnCanceledNotFound : shit happens. sometimes. but this is simply impossible !"); + // move the cursor xCursor->moveToBookmark(pInfo->aPosition); + } + catch( const Exception& ) + { + DBG_UNHANDLED_EXCEPTION(); + } + try + { // let the grid snyc it's display with the cursor Reference< XPropertySet > xModelSet(getControlModel(), UNO_QUERY); DBG_ASSERT(xModelSet.is(), "SbaXDataBrowserController::OnCanceledNotFound : no model set ?!"); Any aOld = xModelSet->getPropertyValue(::rtl::OUString::createFromAscii("DisplayIsSynchron")); xModelSet->setPropertyValue(::rtl::OUString::createFromAscii("DisplayIsSynchron"), ::comphelper::makeBoolAny(sal_Bool(sal_True))); xModelSet->setPropertyValue(::rtl::OUString::createFromAscii("DisplayIsSynchron"), aOld); + } + catch( const Exception& ) + { + DBG_UNHANDLED_EXCEPTION(); + } return 0L; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
