mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 09:44:46 +00:00
[VarComposite] Another minor resue of num_points
This commit is contained in:
parent
fc8dfe64d0
commit
cf95f3193b
1 changed files with 3 additions and 2 deletions
|
@ -457,7 +457,8 @@ struct Glyph
|
|||
hb_array_t<contour_point_t> points_left = points.as_array ();
|
||||
for (auto &item : get_var_composite_iterator ())
|
||||
{
|
||||
hb_array_t<contour_point_t> record_points = points_left.sub_array (0, item.get_num_points ());
|
||||
unsigned item_num_points = item.get_num_points ();
|
||||
hb_array_t<contour_point_t> record_points = points_left.sub_array (0, item_num_points);
|
||||
|
||||
comp_points.reset ();
|
||||
|
||||
|
@ -496,7 +497,7 @@ struct Glyph
|
|||
if (all_points.length > HB_GLYF_MAX_POINTS)
|
||||
return false;
|
||||
|
||||
points_left += item.get_num_points ();
|
||||
points_left += item_num_points;
|
||||
}
|
||||
all_points.extend (phantoms);
|
||||
} break;
|
||||
|
|
Loading…
Add table
Reference in a new issue