]> git.saurik.com Git - wxWidgets.git/blob - wxPython/SWIG/pycpp.cxx.patch
don't generate an endless stream of asserts for the 0-sized images
[wxWidgets.git] / wxPython / SWIG / pycpp.cxx.patch
1 *** Modules/pycpp.cxx.orig Fri Oct 12 16:37:36 2001
2 --- Modules/pycpp.cxx Fri Oct 12 16:38:20 2001
3 ***************
4 *** 228,235 ****
5 *additional << "def " << realname << "(*_args,**_kwargs):\n";
6 *additional << tab4 << "val = " << class_name << "Ptr(apply("
7 << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
8 ! << tab4 << "val.thisown = 1\n"
9 ! << tab4 << "return val\n\n";
10 }
11 // Patch up the documentation entry
12 if (doc_entry) {
13 --- 228,236 ----
14 *additional << "def " << realname << "(*_args,**_kwargs):\n";
15 *additional << tab4 << "val = " << class_name << "Ptr(apply("
16 << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
17 ! << tab4 << "val.thisown = 1\n";
18 ! emitAddPragmas(*additional, realname, tab4);
19 ! *additional << tab4 << "return val\n\n";
20 }
21 // Patch up the documentation entry
22 if (doc_entry) {