Fix thinko

This commit is contained in:
Behdad Esfahbod 2022-07-29 12:41:30 -06:00
parent bdbb8c297e
commit 149b030520
1 changed files with 1 additions and 1 deletions

View File

@ -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)))