X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f845b22151aa252447d4805bdbfefe2ef66f3e2..569ef72a4d64a01a995053670c1f2abf3f6fd601:/wxPython/src/helpers.cpp 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))