Applied patch from Ian Brown. Fixes coredump under Solaris.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2002-11-28 18:13:00 +00:00
parent fd5630b45c
commit f27187f468

View File

@@ -617,7 +617,7 @@ void wxListBoxCallback (Widget WXUNUSED(w), XtPointer clientData,
event.SetString( item->GetString( n ) );
int x = -1;
if( cbs->event->type == ButtonRelease )
if( NULL != cbs->event && cbs->event->type == ButtonRelease )
{
XButtonEvent* evt = (XButtonEvent*)cbs->event;