]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/html_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / html_wrap.cpp
index 57492c1dc7716de92bf3eb8b29e2144cd06067de..ed3271bc1c9a704bac9e0afd4bfbc62c67f204e1 100644 (file)
@@ -11788,6 +11788,10 @@ SWIGINTERN PyObject *_wrap_HtmlDCRenderer_Render(PyObject *SWIGUNUSEDPARM(self),
     for (i=0; i<len; i++) {
       PyObject* item = PySequence_GetItem(obj3, i);
       PyObject* number  = PyNumber_Int(item);
+      if (!number) {
+        PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
+        SWIG_fail;
+      }       
       arg4->Add(PyInt_AS_LONG(number));
       Py_DECREF(item);
       Py_DECREF(number);