Applied [ 586524 ] wxVariant Enhancements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2244,9 +2244,11 @@ bool wxVariant::Convert(wxDateTime* value) const
|
||||
{
|
||||
wxString type(GetType());
|
||||
if (type == wxT("datetime"))
|
||||
{
|
||||
*value = ((wxVariantDataDateTime*)GetData())->GetValue();
|
||||
else
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
// Fallback to string conversion
|
||||
wxString val;
|
||||
return Convert(&val) && (value->ParseDate(val));
|
||||
}
|
||||
|
Reference in New Issue
Block a user