From 5337db29af39084d677a63154f404eca0c20cfeb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 6 Nov 2015 16:18:09 -0800 Subject: [PATCH] Revert "Don't process lookups if buffer is in error" This reverts commit f92bd86cc8c11d262d1830c631cb7c63fc9d4bc8. We don't want to be like cairo, where as soon as there's an error, nothing works anymore. So, lets process lookups as long as there's no new memory needed. That's also a model that hides fewer bugs. --- src/hb-ot-layout.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 41110044c..275a960d5 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -954,7 +954,7 @@ apply_string (OT::hb_apply_context_t *c, { hb_buffer_t *buffer = c->buffer; - if (unlikely (buffer->in_error || !buffer->len || !c->lookup_mask)) + if (unlikely (!buffer->len || !c->lookup_mask)) return; c->set_lookup_props (lookup.get_props ());