[morx] Fix mark_set check

This commit is contained in:
Behdad Esfahbod 2018-09-19 22:34:09 -04:00
parent 0739b28169
commit 5fd8bce945
1 changed files with 1 additions and 3 deletions

View File

@ -608,7 +608,7 @@ struct InsertionSubtable
hb_buffer_t *buffer = driver->buffer;
unsigned int flags = entry->flags;
if (entry->data.markedInsertIndex != 0xFFFF)
if (entry->data.markedInsertIndex != 0xFFFF && mark_set)
{
unsigned int count = (flags & MarkedInsertCount);
unsigned int start = entry->data.markedInsertIndex;
@ -617,8 +617,6 @@ struct InsertionSubtable
bool before = flags & MarkedInsertBefore;
if (unlikely (!mark_set)) return false;
unsigned int end = buffer->out_len;
buffer->move_to (mark);