]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/grid_wrap.cpp
compilation fix for !wxUSE_STATBOX
[wxWidgets.git] / wxPython / src / gtk / grid_wrap.cpp
index 0a6f96c64012c4ef45ddc0a6a8222310aebf4892..ff699cb5ceadf9bdfe8dc4eb78b74db368ad9460 100644 (file)
@@ -3320,6 +3320,7 @@ public:
                     rval = *ptr;
                 }
                 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
+                    PyErr_Clear();  // Clear the exception left over from wxPyConvertSwigPtr
                     PyObject* o1 = PySequence_GetItem(ro, 0);
                     PyObject* o2 = PySequence_GetItem(ro, 1);
                     if (PyNumber_Check(o1) && PyNumber_Check(o2))