mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[AAT] In InsertionChain, set mark to previous-position if inserting
Fixes MORX-31
This commit is contained in:
1 parent
cbe0ed117a
commit
36fb2b4da9
1 file changed
+5
-3
@@ -729,6 +729,8 @@ struct InsertionSubtable
|
||||
hb_buffer_t *buffer = driver->buffer;
|
||||
unsigned int flags = entry->flags;
|
||||
|
||||
unsigned mark_loc = buffer->out_len;
|
||||
|
||||
if (entry->data.markedInsertIndex != 0xFFFF)
|
||||
{
|
||||
unsigned int count = (flags & MarkedInsertCount);
|
||||
@@ -754,6 +756,9 @@ struct InsertionSubtable
|
||||
buffer->unsafe_to_break_from_outbuffer (mark, MIN (buffer->idx + 1, buffer->len));
|
||||
}
|
||||
|
||||
if (flags & SetMark)
|
||||
mark = mark_loc;
|
||||
|
||||
if (entry->data.currentInsertIndex != 0xFFFF)
|
||||
{
|
||||
unsigned int count = (flags & CurrentInsertCount) >> 5;
|
||||
@@ -791,9 +796,6 @@ struct InsertionSubtable
|
||||
buffer->move_to ((flags & DontAdvance) ? end : end + count);
|
||||
}
|
||||
|
||||
if (flags & SetMark)
|
||||
mark = buffer->out_len;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user