]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/my_typemaps.i
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / wxPython / src / my_typemaps.i
index 140215972a5100bfdfb3a49d084126bda3edecd3..b1c58defd693cd4e5d3a034e42a3aae05eb02f4f 100644 (file)
@@ -18,6 +18,7 @@
     wxPy_BEGIN_ALLOW_THREADS;
     $function
     wxPy_END_ALLOW_THREADS;
+    if (PyErr_Occurred()) return NULL;
 }
 
 //----------------------------------------------------------------------