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:
@@ -258,7 +258,7 @@ PyObject* wxPyDrawTextList(wxDC& dc, PyObject* textList, PyObject* pyPoints, PyO
|
|||||||
else {
|
else {
|
||||||
obj = PySequence_GetItem(textList, i);
|
obj = PySequence_GetItem(textList, i);
|
||||||
}
|
}
|
||||||
if (! PyString_Check(obj) ) {
|
if (! PyString_Check(obj) && !PyUnicode_Check(obj) ) {
|
||||||
Py_DECREF(obj);
|
Py_DECREF(obj);
|
||||||
goto err1;
|
goto err1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user