Update of /cvsroot/mahogany/M/src/adb
In directory sc8-pr-cvs1:/tmp/cvs-serv7805/src/adb

Modified Files:
        AdbFrame.cpp 
Log Message:
fixed (harmless) wxWindows errors when right clicking in the ADB tree

Index: AdbFrame.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/adb/AdbFrame.cpp,v
retrieving revision 1.113
retrieving revision 1.114
diff -b -u -2 -r1.113 -r1.114
--- AdbFrame.cpp        19 Sep 2003 13:31:20 -0000      1.113
+++ AdbFrame.cpp        1 Oct 2003 23:24:13 -0000       1.114
@@ -2419,13 +2419,12 @@
 {
   wxTreeItemId id = event.GetItem();
-
-  // FIXME: I don't know how is this possible but under Windows when we create
-  //        a new item in a group which had never been expanded yet the data
-  //        may be NULL
-  wxTreeItemData *data = m_treeAdb->GetItemData(id);
-  if ( !data ) {
+  if ( !id.IsOk() )
+  {
     event.Skip();
     return;
   }
+
+  wxTreeItemData *data = m_treeAdb->GetItemData(id);
+  CHECK_RET( data, _T("no item data in wxAdbEditFrame::OnTreeSelect()?") );
 
   m_current = (AdbTreeNode *)data;



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to