summaryrefslogtreecommitdiff
path: root/src/hb-ot-shape-complex-arabic.cc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-09-30 03:54:40 -0400
committerBehdad Esfahbod <behdad@behdad.org>2018-09-30 06:08:11 -0400
commitbd07d2878ff28baecf7b4b587a18ffbb744b7eb1 (patch)
treef776cd375b34343a058583a61948837ef7da78d6 /src/hb-ot-shape-complex-arabic.cc
parentba0f0f156fe05bda760efcb0c8d34f303fa26ab0 (diff)
Use buffer scratch_flags to remember if we had any joiners
Diffstat (limited to 'src/hb-ot-shape-complex-arabic.cc')
-rw-r--r--src/hb-ot-shape-complex-arabic.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hb-ot-shape-complex-arabic.cc b/src/hb-ot-shape-complex-arabic.cc
index d136a664..c4a695ab 100644
--- a/src/hb-ot-shape-complex-arabic.cc
+++ b/src/hb-ot-shape-complex-arabic.cc
@@ -399,6 +399,9 @@ flip_joiners (const hb_ot_shape_plan_t *plan HB_UNUSED,
hb_font_t *font HB_UNUSED,
hb_buffer_t *buffer)
{
+ if (!(buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_JOINERS))
+ return;
+
unsigned int count = buffer->len;
hb_glyph_info_t *info = buffer->info;
for (unsigned int i = 0; i < count; i++)