Allow unicode objects in wxPyDrawTextList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e4a1c661cd
commit
06223aa37a
@ -258,7 +258,7 @@ PyObject* wxPyDrawTextList(wxDC& dc, PyObject* textList, PyObject* pyPoints, PyO
|
||||
else {
|
||||
obj = PySequence_GetItem(textList, i);
|
||||
}
|
||||
if (! PyString_Check(obj) ) {
|
||||
if (! PyString_Check(obj) && !PyUnicode_Check(obj) ) {
|
||||
Py_DECREF(obj);
|
||||
goto err1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user