fix for crash under wxX11: we get text event there when m_popup is still NULL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-06-11 11:47:24 +00:00
parent c245a01202
commit b0fb790beb

View File

@ -458,7 +458,7 @@ void wxDatePickerCtrlGeneric::OnText(wxCommandEvent &ev)
// We'll create an additional event if the date is valid. // We'll create an additional event if the date is valid.
// If the date isn't valid, the user's probably in the middle of typing // If the date isn't valid, the user's probably in the middle of typing
wxDateTime dt; wxDateTime dt;
if ( !m_popup->ParseDateTime(m_combo->GetValue(), &dt) ) if ( !m_popup || !m_popup->ParseDateTime(m_combo->GetValue(), &dt) )
return; return;
m_popup->SendDateEvent(dt); m_popup->SendDateEvent(dt);