X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a66212dcdf3f4b2d4e2b1d1dc45f2ff35bd51bfd..371fd015a7c7bd9aeaaccb05b19d07b69740755c:/wxPython/src/grid.i diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index c833668cef..147ca26bf4 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -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); \