[cairo-commit] Branch '1.4' - src/cairo-pdf-surface.c
Adrian Johnson
ajohnson at kemper.freedesktop.org
Fri Jan 18 03:16:22 PST 2008
src/cairo-pdf-surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit efc03cfcfb14a135eb1d5a66969179917b3b28e2
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Fri Jan 18 21:46:13 2008 +1030
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.
diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 862e14a..3c804fd 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,
More information about the cairo-commit
mailing list