From 149b03052055dc4eef88bbe6070199a3e1f3c276 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 29 Jul 2022 12:41:30 -0600 Subject: [PATCH] Fix thinko --- src/OT/Layout/GSUB/SingleSubstFormat1.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/Layout/GSUB/SingleSubstFormat1.hh b/src/OT/Layout/GSUB/SingleSubstFormat1.hh index fd9197b82..4b17243d8 100644 --- a/src/OT/Layout/GSUB/SingleSubstFormat1.hh +++ b/src/OT/Layout/GSUB/SingleSubstFormat1.hh @@ -51,7 +51,7 @@ struct SingleSubstFormat1_3 hb_codepoint_t min_before = intersection.get_min (); hb_codepoint_t max_before = intersection.get_max (); hb_codepoint_t min_after = (min_before + d) & mask; - hb_codepoint_t max_after = (min_before + d) & mask; + hb_codepoint_t max_after = (max_before + d) & mask; if ((this+coverage).get_population () >= max_before - min_before && ((min_before <= min_after && min_after <= max_before) || (min_before <= max_after && max_after <= max_before)))