aboutsummaryrefslogtreecommitdiff
path: root/src/OT/Layout/GSUB/SingleSubstFormat1.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/OT/Layout/GSUB/SingleSubstFormat1.hh')
-rw-r--r--src/OT/Layout/GSUB/SingleSubstFormat1.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OT/Layout/GSUB/SingleSubstFormat1.hh b/src/OT/Layout/GSUB/SingleSubstFormat1.hh
index 1be21b98b..13665d7ba 100644
--- a/src/OT/Layout/GSUB/SingleSubstFormat1.hh
+++ b/src/OT/Layout/GSUB/SingleSubstFormat1.hh
@@ -57,7 +57,7 @@ struct SingleSubstFormat1_3
hb_codepoint_t max_before = intersection.get_max ();
hb_codepoint_t min_after = (min_before + d) & mask;
hb_codepoint_t max_after = (max_before + d) & mask;
- if (intersection.get_population () == max_before - min_before + 1 &&
+ if (pop >= max_before - min_before &&
((min_before <= min_after && min_after <= max_before) ||
(min_before <= max_after && max_after <= max_before)))
return;