Changed if to elif

This commit is contained in:
Andrew Murray 2019-04-25 13:20:23 +10:00
parent 683768095b
commit 69b733d5f1

View File

@ -135,7 +135,7 @@ class FreeTypeFont(object):
layout_engine = LAYOUT_BASIC
if core.HAVE_RAQM:
layout_engine = LAYOUT_RAQM
if layout_engine == LAYOUT_RAQM and not core.HAVE_RAQM:
elif layout_engine == LAYOUT_RAQM and not core.HAVE_RAQM:
layout_engine = LAYOUT_BASIC
self.layout_engine = layout_engine