]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datectlg.cpp
recreate the window if FSAA is requested (changeset_r54022_Fix.patch from #9145)
[wxWidgets.git] / src / generic / datectlg.cpp
index fb04195e96ccfd07d3f333358f69c361fcf4851b..476c4c5e81447e3b916f4acef75abbef6ae119f2 100644 (file)
@@ -458,7 +458,7 @@ void wxDatePickerCtrlGeneric::OnText(wxCommandEvent &ev)
     // 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
     wxDateTime dt;
-    if ( !m_popup->ParseDateTime(m_combo->GetValue(), &dt) )
+    if ( !m_popup || !m_popup->ParseDateTime(m_combo->GetValue(), &dt) )
         return;
 
     m_popup->SendDateEvent(dt);