From 58ce477ac170969430310750b78dcb5f9e3b06a3 Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Tue, 21 May 2019 20:22:40 -0700 Subject: [PATCH] [subset] Report failure more often --- src/hb-ot-glyf-table.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 2ef0952..92382de 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -104,11 +104,11 @@ struct glyf loca_prime_data, free); - plan->add_table (HB_OT_TAG_loca, loca_blob); - _add_head_and_set_loca_version(plan, use_short_loca); + bool result = plan->add_table (HB_OT_TAG_loca, loca_blob) + && _add_head_and_set_loca_version(plan, use_short_loca); hb_blob_destroy (loca_blob); - return true; + return result; } template