This commit is contained in:
Kovid Goyal 2017-12-13 14:05:01 +05:30
parent 872118fcbe
commit 869abc4d5c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -250,6 +250,7 @@ cell_metrics(PyObject *s, unsigned int* cell_width, unsigned int* cell_height, u
*underline_position = floor(self->ascent - self->underline_position + 0.5); *underline_position = floor(self->ascent - self->underline_position + 0.5);
*underline_thickness = (unsigned int)ceil(MAX(0.1, self->underline_thickness)); *underline_thickness = (unsigned int)ceil(MAX(0.1, self->underline_thickness));
*baseline = (unsigned int)self->ascent; *baseline = (unsigned int)self->ascent;
#undef count
} }
PyObject* PyObject*