mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[CompositeGlyph] Adjust pre-allocation
This commit is contained in:
parent
6ca8852eff
commit
fcbf14a0e5
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ struct CompositeGlyphRecord
|
|||
float matrix[4];
|
||||
contour_point_t trans;
|
||||
get_transformation (matrix, trans);
|
||||
if (unlikely (!points.alloc (points.length + 4))) return false; // For phantom points
|
||||
if (unlikely (!points.alloc (points.length + 1 + 4))) return false; // For phantom points
|
||||
points.push (trans);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue