mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 22:20:14 +01:00
Initialize array element size correctly.
This commit is contained in:
parent
0502a5a63c
commit
9597c0b791
3 changed files with 8 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2005-02-13 Kristian Høgsberg <krh@redhat.com>
|
||||
|
||||
* src/cairo_pdf_surface.c
|
||||
(_cairo_pdf_surface_create_for_document): Initialize array element
|
||||
size correctly.
|
||||
|
||||
2005-02-10 Kristian Høgsberg <krh@redhat.com>
|
||||
|
||||
Patches from Owen Taylor:
|
||||
|
|
|
|||
|
|
@ -948,7 +948,7 @@ _cairo_pdf_surface_create_for_document (cairo_pdf_document_t *document,
|
|||
_cairo_array_init (&surface->patterns, sizeof (cairo_pdf_resource_t));
|
||||
_cairo_array_init (&surface->xobjects, sizeof (cairo_pdf_resource_t));
|
||||
_cairo_array_init (&surface->alphas, sizeof (double));
|
||||
_cairo_array_init (&surface->fonts, sizeof (cairo_pdf_font_t));
|
||||
_cairo_array_init (&surface->fonts, sizeof (cairo_pdf_resource_t));
|
||||
|
||||
return &surface->base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -948,7 +948,7 @@ _cairo_pdf_surface_create_for_document (cairo_pdf_document_t *document,
|
|||
_cairo_array_init (&surface->patterns, sizeof (cairo_pdf_resource_t));
|
||||
_cairo_array_init (&surface->xobjects, sizeof (cairo_pdf_resource_t));
|
||||
_cairo_array_init (&surface->alphas, sizeof (double));
|
||||
_cairo_array_init (&surface->fonts, sizeof (cairo_pdf_font_t));
|
||||
_cairo_array_init (&surface->fonts, sizeof (cairo_pdf_resource_t));
|
||||
|
||||
return &surface->base;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue