From 325a5d2eaee2a479fb5ebb5622239dee00b9785e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 18 Oct 2004 01:37:23 +0000 Subject: [PATCH] fix callback git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6426 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/python.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 89b312006..47c8dafc9 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1416,7 +1416,8 @@ public: } Printv(f->code,"}\n",NIL); Wrapper_print(f,f_wrappers); - add_method(symname,wname,0); + Node *p = Getattr(n, "sym:previousSibling"); + add_method(symname,wname,0,p); /* Create a shadow for this function (if enabled and not in a member function) */ if ((shadow) && (!(shadow & PYSHADOW_MEMBER))) {