]> git.saurik.com Git - wxWidgets.git/commitdiff
ensure that the wxString gets all the wide chars
authorRobin Dunn <robin@alldunn.com>
Fri, 10 Sep 2004 21:36:25 +0000 (21:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 10 Sep 2004 21:36:25 +0000 (21:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.cpp

index e85e1fac536ef300a022637a085faab193cd469a..5744f065847e3f5cc7c109fe95bb796a36e60988 100644 (file)
@@ -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))