mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 19:18:12 +02:00
Chec pdf_font for NULL, not font.
This commit is contained in:
parent
55a8b62ec4
commit
a812c7a066
3 changed files with 7 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue