User: rt      
Date: 2006/12/01 09:30:39

Modified:
   dba/dbaccess/source/ui/control/dbtreelistbox.cxx

Log:
 INTEGRATION: CWS dba22a (1.14.2); FILE MERGED
 2006/11/15 08:49:49 fs 1.14.2.1: #142997#
 modified the double-click handling in the DBTreeListBox
 various stack trace reports suggest there are scenarios where a double click
 handler somehow destroys/corrupts the list box and/or its entries, but the
 subsequent default handling in the SvListBox class accesses those corrupted
 entities.
 Since we're not able to reproduce any of those crashs, the handling in the
 DBTreeListBox and its clients now is as follows:
 If a double click is handled, then the DBTreeListBox::DoubleClickHdl will
 return 0, this way causing the SvListBox to *not* process the double
 click event further.

File Changes:

Directory: /dba/dbaccess/source/ui/control/
===========================================

File [changed]: dbtreelistbox.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/control/dbtreelistbox.cxx?r1=1.14&r2=1.15
Delta lines:  +9 -0
-------------------
--- dbtreelistbox.cxx   12 Oct 2006 13:36:23 -0000      1.14
+++ dbtreelistbox.cxx   1 Dec 2006 17:30:37 -0000       1.15
@@ -496,6 +496,15 @@
        
        return FALSE;  // we never want that the base change our text
 }
+
+// 
-----------------------------------------------------------------------------
+BOOL DBTreeListBox::DoubleClickHdl()
+{
+       long nResult = aDoubleClickHdl.Call( this );
+    // continue default processing if the DoubleClickHandler didn't handle it
+    return nResult == 0;
+}
+
 // 
-----------------------------------------------------------------------------
 void scrollWindow(DBTreeListBox* _pListBox, const Point& _rPos,sal_Bool _bUp)
 {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to