From 69b733d5f1431ed5d902ca592cf0cf61c934d2cd Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 25 Apr 2019 13:20:23 +1000 Subject: [PATCH] Changed if to elif --- src/PIL/ImageFont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 709374654..255f25cb5 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -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