[cairo] cairo-ps-surface bugfix

Adrian Johnson ajohnson at redneon.com
Wed Aug 10 08:42:34 PDT 2005


-------------- next part --------------
RCS file: /cvs/cairo/cairo/src/cairo-ps-surface.c,v
retrieving revision 1.46
diff -a -u -r1.46 cairo-ps-surface.c
--- src/cairo-ps-surface.c	9 Aug 2005 01:35:22 -0000	1.46
+++ src/cairo-ps-surface.c	10 Aug 2005 15:28:27 -0000
@@ -909,8 +909,8 @@
     _cairo_output_stream_printf (stream, "[");
     for (i = 0; i < num_rects; i++) {
       _cairo_output_stream_printf (stream,
-				   " %d %d %d %d",
+				   " %d %f %d %d",
 				   rects[i].x,
-				   surface->parent->height - rects[i].y - rects[i].height,
+				   (double)(surface->parent->height - rects[i].y - rects[i].height),
 				   rects[i].width, rects[i].height);
     }


More information about the cairo mailing list