Merge pull request #8235 from radarhere/axis_name

Simplified code
This commit is contained in:
Hugo van Kemenade 2024-07-15 15:42:10 +03:00 committed by GitHub
commit 2152a1736c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1315,8 +1315,7 @@ font_getvaraxes(FontObject *self) {
FT_Done_MM_Var(library, master); FT_Done_MM_Var(library, master);
return NULL; return NULL;
} }
PyDict_SetItemString( PyDict_SetItemString(list_axis, "name", axis_name);
list_axis, "name", axis_name ? axis_name : Py_None);
Py_DECREF(axis_name); Py_DECREF(axis_name);
break; break;
} }