]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in IMP_PYCALLBACK__BOOL2DBL2INT, for #223404 in the tracker
authorRobin Dunn <robin@alldunn.com>
Mon, 26 Mar 2001 22:38:29 +0000 (22:38 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 26 Mar 2001 22:38:29 +0000 (22:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/helpers.h

index 681bdc6bcbc2f9932a5ed9f89af94391fad2dbf9..6192e6e52c73fa4f80272d43d4e8220c2c49d5c9 100644 (file)
@@ -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);                                      \