From 91ce0c45d6782057a2736f7b76a3c49cadbea070 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 May 2016 16:13:03 +0100 Subject: [PATCH] [safe-to-break] Fix logic when there is no out-buffer --- src/hb-buffer.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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);