summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-03-10 15:13:00 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-03-10 15:13:00 +0000
commit6754f1db1716a6570c82e207e21b09a10de120ba (patch)
treede4b7a791c2ad7abc11d089076bfc550ebc21de3
parent5fb36fe5ab2a2b30da213557936122a829493906 (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.c1
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;