diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-01 12:41:14 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-01 12:41:14 +0000 |
commit | dcebbad32c248f4e805cce7b525717a659f53209 (patch) | |
tree | f8ed3e1da45a288fe7e8567a4966667ea8129b78 /pdf | |
parent | 80328bfd9c7d650fc85a78828be4bbc049295272 (diff) | |
download | mupdf-dcebbad32c248f4e805cce7b525717a659f53209.tar.xz |
Fix Bug 692829; add cope to handle true/false in functions.
Add 2 missing cases to parse_code.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_function.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index 1dda0e6e..6cc65001 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -711,6 +711,20 @@ parse_code(pdf_function *func, fz_stream *stream, int *codeptr) ++*codeptr; break; + case PDF_TOK_TRUE: + resize_code(ctx, func, *codeptr); + func->u.p.code[*codeptr].type = PS_BOOL; + func->u.p.code[*codeptr].u.b = 1; + ++*codeptr; + break; + + case PDF_TOK_FALSE: + resize_code(ctx, func, *codeptr); + func->u.p.code[*codeptr].type = PS_BOOL; + func->u.p.code[*codeptr].u.b = 0; + ++*codeptr; + break; + case PDF_TOK_REAL: resize_code(ctx, func, *codeptr); func->u.p.code[*codeptr].type = PS_REAL; |