Chec pdf_font for NULL, not font.

This commit is contained in:
Owen Taylor 2005-01-25 10:56:50 +00:00
parent 55a8b62ec4
commit a812c7a066
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-01-25 Owen Taylor <otaylor@redhat.com>
* src/cairo_pdf_surface.c (_cairo_pdf_document_get_font): Chec
pdf_font for NULL, not font.
2005-01-25 Alexander Larsson <alexl@redhat.com>
* src/Makefile.am:

View file

@ -1726,7 +1726,7 @@ _cairo_pdf_document_get_font (cairo_pdf_document_t *document,
/* FIXME: Figure out here which font backend is in use and call
* the appropriate constructor. */
pdf_font = cairo_pdf_ft_font_create (document, unscaled_font);
if (font == NULL)
if (pdf_font == NULL)
return NULL;
if (_cairo_array_append (&document->fonts, &pdf_font, 1) == NULL) {

View file

@ -1726,7 +1726,7 @@ _cairo_pdf_document_get_font (cairo_pdf_document_t *document,
/* FIXME: Figure out here which font backend is in use and call
* the appropriate constructor. */
pdf_font = cairo_pdf_ft_font_create (document, unscaled_font);
if (font == NULL)
if (pdf_font == NULL)
return NULL;
if (_cairo_array_append (&document->fonts, &pdf_font, 1) == NULL) {