]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/grid_wrap.cpp
Don't steal VK_RETURN for wxEVT_COMMAND_LIST_ITEM_ACTIVATED if any of
[wxWidgets.git] / wxPython / src / mac / grid_wrap.cpp
index a1209e77e2f4cbb90b51ad1e8d5a0478e4122345..10eec34265b14b517d0bc4b301983f18f7a18c47 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))