Don't return null on empty string

This commit is contained in:
wiredfool 2017-08-31 08:52:29 -07:00
parent e9424b1997
commit bb7124325e

View File

@ -585,7 +585,7 @@ font_render(FontObject* self, PyObject* args)
glyph_info = NULL; glyph_info = NULL;
count = text_layout(string, self, dir, features, &glyph_info, mask); count = text_layout(string, self, dir, features, &glyph_info, mask);
if (count == 0) { if (count == 0) {
return NULL; Py_RETURN_NONE;
} }
im = (Imaging) id; im = (Imaging) id;