commit | bccdcf5b18861fbdb599189ab1dcb45e339b02b2 | [log] [tgz] |
---|---|---|
author | Qunxin Liu <qxliu@google.com> | Fri Jul 21 10:17:43 2023 -0700 |
committer | Qunxin Liu <qxliu@google.com> | Wed Jul 26 09:48:08 2023 -0700 |
tree | c75fb9e47e736e46938e8c644c81f59902a3af41 | |
parent | 13f05ab9b39202aed98923b8ed0488b344e88a6f [diff] |
[instancer] fix a bug in compiling deltas_y for gvar
diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 95ca86e..01f6531 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh
@@ -719,6 +719,8 @@ } if (j != rounded_deltas.length) return false; + /* reset i because we reuse rounded_deltas for deltas_y */ + i = 0; encoded_len += encode_delta_run (i, compiled_deltas.as_array ().sub_array (encoded_len), rounded_deltas); } return compiled_deltas.resize (encoded_len);