diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index c65e05712..6d13e1782 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc @@ -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);