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
This commit is contained in:
Vadim Zeitlin
2012-04-29 23:22:05 +00:00
parent 182cad34aa
commit af184f1d2f

View File

@@ -130,7 +130,7 @@ public:
if ( !s.empty() )
{
pDt->ParseFormat(s.c_str(), m_format);
pDt->ParseFormat(s, m_format);
if ( !pDt->IsValid() )
return false;
}