]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/drawlist.cpp
warning fix
[wxWidgets.git] / wxPython / src / drawlist.cpp
index 0c7cd62fe896d1a01cbcc1325f671a66f42ed8ca..3764618895971024d6f7f688ee7dd7192aa0eef8 100644 (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;
             }