mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 06:08:02 +02:00
gstate: Account for undropped non-transformed glyphs.
In the simplest case of pass-through glyphs we made a mistake in propagating the number of glyphs. Reported-by: Christophe de Dinechin <christophe@taodyne.com>
This commit is contained in:
parent
5fb36fe5ab
commit
6754f1db17
1 changed files with 1 additions and 0 deletions
|
|
@ -2134,6 +2134,7 @@ _cairo_gstate_transform_glyphs_to_backend (cairo_gstate_t *gstate,
|
|||
if (! drop) {
|
||||
memcpy (transformed_glyphs, glyphs,
|
||||
num_glyphs * sizeof (cairo_glyph_t));
|
||||
j = num_glyphs;
|
||||
} else if (num_clusters == 0) {
|
||||
for (i = 0; i < num_glyphs; i++) {
|
||||
transformed_glyphs[j].index = glyphs[i].index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue