fixed for python2

This commit is contained in:
Ben Yang 2019-03-05 22:26:05 -08:00
parent 386492ff54
commit c174c90ac1

View File

@ -389,6 +389,12 @@ text_layout_raqm(PyObject* string, FontObject* self, const char* dir, const char
PyErr_SetString(PyExc_ValueError, "raqm_set_text_utf8() failed");
goto failed;
}
if (lang) {
if (!(*p_raqm.set_language)(rq, lang, start, size)) {
PyErr_SetString(PyExc_ValueError, "raqm_set_language() failed");
goto failed;
}
}
}
#endif
else {