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

Modified Files:
        wxllist.cpp 
Log Message:
don't crash if the icon is invalid

Index: wxllist.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxllist.cpp,v
retrieving revision 1.152
retrieving revision 1.153
diff -b -u -2 -r1.152 -r1.153
--- wxllist.cpp 27 Feb 2003 23:24:30 -0000      1.152
+++ wxllist.cpp 20 Jul 2003 17:13:11 -0000      1.153
@@ -481,4 +481,6 @@
 wxLayoutObjectIcon::GetSize(CoordType *top, CoordType *bottom) const
 {
+   CHECK( m_Icon, wxPoint(0, 0), _T("invalid wxLayoutObjectIcon") );
+
    *top = m_Icon->GetHeight();
    *bottom = 0;



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to