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:
Chris Wilson 2010-03-10 15:13:00 +00:00
parent 5fb36fe5ab
commit 6754f1db17

View file

@ -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;