From: Robin Dunn Date: Fri, 10 Sep 2004 21:36:25 +0000 (+0000) Subject: ensure that the wxString gets all the wide chars X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0320aeddcda60a1513418ab561f4e7e30eac21f6 ensure that the wxString gets all the wide chars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index e85e1fac53..5744f06584 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1902,7 +1902,7 @@ wxString* wxString_in_helper(PyObject* source) { size_t len = PyUnicode_GET_SIZE(uni); if (len) { PyUnicode_AsWideChar((PyUnicodeObject*)uni, target->GetWriteBuf(len), len); - target->UngetWriteBuf(); + target->UngetWriteBuf(len); } if (PyString_Check(source))