diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 53ec72d19e..0176c2a2a8 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -144,9 +144,9 @@ void wxPickerBase::DoSetToolTip(wxToolTip *tip) // wxPickerBase - event handlers // ---------------------------------------------------------------------------- -void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent &) +void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event) { - wxASSERT(m_text); + event.Skip(); // don't leave the textctrl empty if (m_text->GetValue().empty())