Work around wxDateTime::ParseFormat() problem in generic wxDateTimePickerCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Apr 2012 23:22:05 +0000 (23:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Apr 2012 23:22:05 +0000 (23:22 +0000)
commitaf184f1d2f87251da968014652c86736a92b739d
tree3b2faf1f2689d31d426b8332d66b49c6406cab20
parent182cad34aa73a65ee29736d8314f8c282d02efad
Work around wxDateTime::ParseFormat() problem in generic wxDateTimePickerCtrl.

Due to a bug in wxDateTime::ParseFormat(), calling it with wxString::c_str()
currently just crashes, so don't do this in generic wxDateTimePickerCtrl code.
The real fix is, of course, to correct the bug in wxDateTime itself but for
now this at least prevents the crash when executing the test suite. And using
c_str() here is unnecessary anyhow.

See #14214.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/datectlg.cpp