diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-20 16:11:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-22 14:58:18 +0100 |
commit | 3dccb4108ff8ea8bfd6d56529db36ba257c17d6a (patch) | |
tree | 79b9f76b0a235023e054cc310bc8d2ade0788819 /source/pdf/pdf-pattern.c | |
parent | d92590ee1467880f327b2e688ae8bc353bdadb18 (diff) | |
download | mupdf-3dccb4108ff8ea8bfd6d56529db36ba257c17d6a.tar.xz |
Use PDF object creation convenience functions.
Use pdf_dict_put_* convenience functions.
Use pdf_dict_get instead of pdf_dict_gets with constant strings.
Diffstat (limited to 'source/pdf/pdf-pattern.c')
-rw-r--r-- | source/pdf/pdf-pattern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-pattern.c b/source/pdf/pdf-pattern.c index 578f1d93..7523c5bc 100644 --- a/source/pdf/pdf-pattern.c +++ b/source/pdf/pdf-pattern.c @@ -57,10 +57,10 @@ pdf_load_pattern(fz_context *ctx, pdf_document *doc, pdf_obj *dict) pat->xstep = pdf_to_real(ctx, pdf_dict_get(ctx, dict, PDF_NAME_XStep)); pat->ystep = pdf_to_real(ctx, pdf_dict_get(ctx, dict, PDF_NAME_YStep)); - obj = pdf_dict_gets(ctx, dict, "BBox"); + obj = pdf_dict_get(ctx, dict, PDF_NAME_BBox); pdf_to_rect(ctx, obj, &pat->bbox); - obj = pdf_dict_gets(ctx, dict, "Matrix"); + obj = pdf_dict_get(ctx, dict, PDF_NAME_Matrix); if (obj) pdf_to_matrix(ctx, obj, &pat->matrix); else |