[safe-to-break] Fix logic when there is no out-buffer
This commit is contained in:
parent
a043c99f77
commit
91ce0c45d6
|
@ -663,6 +663,12 @@ hb_buffer_t::unsafe_to_break_impl (unsigned int start, unsigned int end)
|
||||||
void
|
void
|
||||||
hb_buffer_t::unsafe_to_break_from_outbuffer (unsigned int start, unsigned int end)
|
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 (start <= out_len);
|
||||||
assert (idx <= end);
|
assert (idx <= end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue