Skip to content

Commit 0861993

Browse files
committed
Update font.c
1 parent ce167a7 commit 0861993

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src_c/font.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ static int
833833
font_setter_outline(PyObject *self, PyObject *value, void *closure)
834834
{
835835
if (!PgFont_GenerationCheck(self)) {
836-
return RAISE_FONT_QUIT_ERROR();
836+
RAISE_FONT_QUIT_ERROR_RETURN(-1);
837837
}
838838

839839
TTF_Font *font = PyFont_AsFont(self);
@@ -851,9 +851,10 @@ static PyObject *
851851
font_getter_outline(PyObject *self, void *closure)
852852
{
853853
if (!PgFont_GenerationCheck(self)) {
854-
return RAISE_FONT_QUIT_ERROR();
854+
RAISE_FONT_QUIT_ERROR_RETURN(-1);
855855
}
856856

857+
857858
return PyLong_FromLong(TTF_GetFontOutline(PyFont_AsFont(self)));
858859
}
859860

0 commit comments

Comments
 (0)