mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-02 04:03: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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user