[ot-layout] Always swap_buffers() even if no substitutions happened
This commit is contained in:
parent
62b441e6ff
commit
a7f4c985a8
|
@ -1890,17 +1890,13 @@ apply_string (OT::hb_ot_apply_context_t *c,
|
||||||
buffer->clear_output ();
|
buffer->clear_output ();
|
||||||
|
|
||||||
buffer->idx = 0;
|
buffer->idx = 0;
|
||||||
|
apply_forward (c, accel);
|
||||||
|
|
||||||
bool ret;
|
|
||||||
ret = apply_forward (c, accel);
|
|
||||||
if (ret)
|
|
||||||
{
|
|
||||||
if (!Proxy::inplace)
|
if (!Proxy::inplace)
|
||||||
buffer->swap_buffers ();
|
buffer->swap_buffers ();
|
||||||
else
|
else
|
||||||
assert (!buffer->has_separate_output ());
|
assert (!buffer->has_separate_output ());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* in-place backward substitution/positioning */
|
/* in-place backward substitution/positioning */
|
||||||
|
|
Loading…
Reference in New Issue