]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/grid.i
corrected enabling of a specific item by index
[wxWidgets.git] / wxPython / src / grid.i
index c833668ceff135236382995fd49f549fd0d6eb71..147ca26bf499f5832fbbdc994f91423595f05022 100644 (file)
@@ -241,7 +241,7 @@ wxPyMake_TEMPLATE(wxGridTableBase)
         bool rval = 0;                                                          \
         bool found;                                                             \
         wxPyBeginBlockThreads();                                                \
-        if (wxPyCBH_findCallback(m_myInst, #CBNAME)) {                          \
+        if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) {                \
             PyObject* s = wx2PyString(c);                                       \
             rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
             Py_DECREF(s);                                                       \