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
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user