From f2e1c18a79119971199b03bb14492e30dcc1c8b1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 26 Mar 2001 22:38:29 +0000 Subject: [PATCH] fixed bug in IMP_PYCALLBACK__BOOL2DBL2INT, for #223404 in the tracker git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/helpers.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/wxPython/src/helpers.h b/wxPython/src/helpers.h index 681bdc6bcb..6192e6e52c 100644 --- a/wxPython/src/helpers.h +++ b/wxPython/src/helpers.h @@ -137,13 +137,6 @@ extern "C" char *SWIG_GetPtrObj(PyObject *obj, void **ptr, char *type); # pragma warning(disable:4190) #endif - - -// Non-const versions to keep SWIG happy. -// extern wxPoint wxPyDefaultPosition; -// extern wxSize wxPyDefaultSize; -// extern wxString wxPyEmptyStr; - //---------------------------------------------------------------------- class wxPyCallback : public wxObject { @@ -620,8 +613,8 @@ public: #define IMP_PYCALLBACK__BOOL2DBL2INT(CLASS, PCLASS, CBNAME) \ void CLASS::CBNAME(bool a, double b, double c, int d, int e) { \ bool doSave = wxPyRestoreThread(); \ - if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ - wxPyCBH_callCallback(m_myInst, Py_BuildValue("(idii)", \ + if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \ + wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iddii)", \ (int)a,b,c,d,e)); \ else \ PCLASS::CBNAME(a, b, c, d, e); \ -- 2.45.2