X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f845b22151aa252447d4805bdbfefe2ef66f3e2..db7c5931ed25a56f4eaef1076b158ca5d30b9a37:/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))