[cairo-commit] src/cairo-pdf-surface.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Wed Oct 3 04:23:26 PDT 2007


 src/cairo-pdf-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree a4627177663beacd3d15699fee072f7ad2eff4a9 (from c9a9f1299c2bd5b6a8e53fdb264c233a43e0c44a)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Wed Oct 3 19:55:05 2007 +0930

    PDF: Fix bug in font resources

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index e4c0967..fe4dd82 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -624,7 +624,7 @@ _cairo_pdf_surface_add_font (cairo_pdf_s
 
     num_fonts = _cairo_array_num_elements (&res->fonts);
     for (i = 0; i < num_fonts; i++) {
-	_cairo_array_copy_element (&surface->fonts, i, &font);
+	_cairo_array_copy_element (&res->fonts, i, &font);
 	if (font.font_id == font_id &&
 	    font.subset_id == subset_id)
 	    return CAIRO_STATUS_SUCCESS;


More information about the cairo-commit mailing list