Don't cache incorrect length in wxString::DoUngetWriteBuf().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Mar 2012 15:13:16 +0000 (15:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Mar 2012 15:13:16 +0000 (15:13 +0000)
commit42e86f64b77d0379f5a4598a4597cf3a43f1988a
treef6f92bdced6726b0a785f8b29bfcb7a73720f332
parent556a836e0f3bebc68227f516112cbd714cd01c9e
Don't cache incorrect length in wxString::DoUngetWriteBuf().

The length here is the size of the buffer in bytes and is not necessarily the
string length in code points (notably not for non-ASCII strings in UTF-8
build).

Closes #14130.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/string.h