From 0320aeddcda60a1513418ab561f4e7e30eac21f6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 10 Sep 2004 21:36:25 +0000 Subject: [PATCH] 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 --- wxPython/src/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.50.0