[safe-to-break] Fix logic when there is no out-buffer

This commit is contained in:
Behdad Esfahbod 2016-05-05 16:13:03 +01:00
parent a043c99f77
commit 91ce0c45d6
1 changed files with 6 additions and 0 deletions

View File

@ -663,6 +663,12 @@ hb_buffer_t::unsafe_to_break_impl (unsigned int start, unsigned int end)
void
hb_buffer_t::unsafe_to_break_from_outbuffer (unsigned int start, unsigned int end)
{
if (!have_output)
{
unsafe_to_break_impl (start, end);
return;
}
assert (start <= out_len);
assert (idx <= end);