diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2008-01-18 21:46:13 +1030 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2008-01-18 21:46:13 +1030 |
commit | efc03cfcfb14a135eb1d5a66969179917b3b28e2 (patch) | |
tree | 6762f798cf90f8fc1ccc21b99342f3fdb4181229 | |
parent | ff5f5020cf53e39185ee4d3b7cc51262083a4fbb (diff) |
PDF: Add missing struct member when writing the pattern id
The bug did not occur on x86 due to 'id' being the first member of the
struct. However on some architectures this would result in an invalid
pattern id.
-rw-r--r-- | src/cairo-pdf-surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index 862e14a83..3c804fd95 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -1722,11 +1722,11 @@ _cairo_pdf_surface_select_pattern (cairo_pdf_surface_t *surface, if (is_stroke) { _cairo_output_stream_printf (surface->output, "/Pattern CS /res%d SCN ", - surface->emitted_pattern.pattern); + surface->emitted_pattern.pattern.id); } else { _cairo_output_stream_printf (surface->output, "/Pattern cs /res%d scn ", - surface->emitted_pattern.pattern); + surface->emitted_pattern.pattern.id); } _cairo_output_stream_printf (surface->output, |