From 644e0551a2f8736fa77fa19d7ccdfe07160cfab7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 27 Apr 2023 13:00:24 -0600 Subject: [PATCH] [VarComposite] Minor move code --- src/OT/glyf/VarCompositeGlyph.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OT/glyf/VarCompositeGlyph.hh b/src/OT/glyf/VarCompositeGlyph.hh index fd91c4353..d1174f5cf 100644 --- a/src/OT/glyf/VarCompositeGlyph.hh +++ b/src/OT/glyf/VarCompositeGlyph.hh @@ -195,14 +195,15 @@ struct VarCompositeGlyphRecord bool get_points (contour_point_vector_t &points) const { - unsigned fl = flags; unsigned num_points = get_num_points (); - unsigned num_axes = numAxes; if (unlikely (!points.resize (points.length + num_points, false))) return false; contour_point_t *rec_points = points.as_array ().sub_array (points.length - num_points).arrayZ; memset (rec_points, 0, num_points * sizeof (rec_points[0])); + unsigned fl = flags; + + unsigned num_axes = numAxes; unsigned axis_width = (fl & AXIS_INDICES_ARE_SHORT) ? 2 : 1; unsigned axes_size = num_axes * axis_width;