diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-10 15:13:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-03-10 15:13:00 +0000 |
commit | 6754f1db1716a6570c82e207e21b09a10de120ba (patch) | |
tree | de4b7a791c2ad7abc11d089076bfc550ebc21de3 | |
parent | 5fb36fe5ab2a2b30da213557936122a829493906 (diff) |
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>
-rw-r--r-- | src/cairo-gstate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c index 478b40031..614d73eb4 100644 --- a/src/cairo-gstate.c +++ b/src/cairo-gstate.c @@ -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; |