]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/richtext_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / richtext_wrap.cpp
index 7579741279d75b37709cd298f80c150188f5a00a..69525df3f98841e84379ca815bed948b1b883e5a 100644 (file)
@@ -3787,6 +3787,10 @@ SWIGINTERN PyObject *_wrap_RichTextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self),
     for (i=0; i<len; i++) {
       PyObject* item = PySequence_GetItem(obj1, i);
       PyObject* number  = PyNumber_Int(item);
+      if (!number) {
+        PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
+        SWIG_fail;
+      }       
       arg2->Add(PyInt_AS_LONG(number));
       Py_DECREF(item);
       Py_DECREF(number);