Tag: cws_src680_oj14
User: oj      
Date: 06/01/03 05:19:05

Modified:
 /dba/dbaccess/source/ui/browser/
  brwctrlr.cxx

Log:
 RESYNC: (1.89-1.90); FILE MERGED

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.4.1&r2=1.89.4.2
Delta lines:  +30 -12
---------------------
--- brwctrlr.cxx        3 Jan 2006 07:48:59 -0000       1.89.4.1
+++ brwctrlr.cxx        3 Jan 2006 13:19:02 -0000       1.89.4.2
@@ -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
@@ -2370,15 +2373,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]

Reply via email to