From d3fff622b35725bbdfb07fea98a58f56199991f4 Mon Sep 17 00:00:00 2001 From: ckitagawa Date: Thu, 23 Jan 2020 11:36:47 -0500 Subject: [PATCH] Move push call to caller --- src/hb-ot-color-sbix-table.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 263ae7a3a..0b71ee5f2 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -337,9 +337,6 @@ struct sbix const void *dst_base, unsigned int i, unsigned int sbix_len) const { - // Push first so reverting doesn't fail. - c->serializer->push (); - if (strikes[i].is_null () || sbix_len < (unsigned int) strikes[i]) return false; @@ -365,6 +362,7 @@ struct sbix if (unlikely (!o)) return_trace (false); *o = 0; auto snap = c->serializer->snapshot (); + c->serializer->push (); bool ret = add_strike(c, dst_base, i, sbix_len); if (!ret) {