Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30957/src/gui

Modified Files:
        wxFolderView.cpp 
Log Message:
guard against crash in wxFolderListCtrl::GetUIdFromIndex() appearing in one of 
Nerijus' crash reports (still no idea why/how does it happen but it shouldn't 
happen any more)

Index: wxFolderView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxFolderView.cpp,v
retrieving revision 1.675
retrieving revision 1.676
diff -b -u -2 -r1.675 -r1.676
--- wxFolderView.cpp    13 Feb 2006 16:45:43 -0000      1.675
+++ wxFolderView.cpp    8 Apr 2006 00:20:05 -0000       1.676
@@ -547,5 +547,6 @@
       MLocker lock(((wxFolderListCtrl *)this)->m_mutexHeaders);
 
-      return m_headers->GetItem((size_t)item)->GetUId();
+      HeaderInfo *hi = m_headers->GetItem((size_t)item);
+      return hi ? hi->GetUId() : UID_ILLEGAL;
    }
 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to