From kh_pylon:

You have to put Py_RETURN_NONE; inside { }; it's a two-line macro
Aparently breaks MacOS.
This commit is contained in:
2005-12-13 00:27:10 +00:00
parent d73e312f88
commit fadaa2fbe9

View File

@@ -198,7 +198,9 @@ static PyObject *M_Image_Get( PyObject * self, PyObject * args )
static PyObject *M_Image_GetCurrent( PyObject * self )
{
PyObject *current_img;
if (!G.sima || !G.sima->image) Py_RETURN_NONE;
if (!G.sima || !G.sima->image) {
Py_RETURN_NONE;
}
current_img = Image_CreatePyObject( G.sima->image );
return current_img;
}