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:
Robin Dunn 2005-01-26 19:25:31 +00:00
parent e4a1c661cd
commit 06223aa37a

View File

@ -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;
}