Don't create an invalid iterator in wxDateTime::ParseTime().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Dec 2009 13:46:27 +0000 (13:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 30 Dec 2009 13:46:27 +0000 (13:46 +0000)
commit4e2c2c7062f7cf92b61d8a474a94dee05de70760
treee0805cfc6c818c7e37c0ea6239279617b5ef9238
parentede4fb2ffac5f6aa510cac0430a457a13d6f6ff3
Don't create an invalid iterator in wxDateTime::ParseTime().

Creating an iterator pointing beyond the string end resulted in an assert from
MSVC 9 CRT. Fix this by using wxString ctor taking length (which may be
greater than the length of the string) instead of the one taking two iterators
(which must both be valid).

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