提交 91ce0c45 编写于 作者: B Behdad Esfahbod

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

上级 a043c99f
...@@ -663,6 +663,12 @@ hb_buffer_t::unsafe_to_break_impl (unsigned int start, unsigned int end) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册