mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-25 08:10:33 +03:00
Don't return null on empty string
This commit is contained in:
parent
e9424b1997
commit
bb7124325e
|
@ -585,7 +585,7 @@ font_render(FontObject* self, PyObject* args)
|
|||
glyph_info = NULL;
|
||||
count = text_layout(string, self, dir, features, &glyph_info, mask);
|
||||
if (count == 0) {
|
||||
return NULL;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
im = (Imaging) id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user