diff options
Diffstat (limited to 'source/pdf/pdf-field.c')
-rw-r--r-- | source/pdf/pdf-field.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-field.c b/source/pdf/pdf-field.c index 7989db8d..07a6e770 100644 --- a/source/pdf/pdf-field.c +++ b/source/pdf/pdf-field.c @@ -146,7 +146,7 @@ void pdf_set_field_type(fz_context *ctx, pdf_document *doc, pdf_obj *obj, int ty if (setbits != 0 || clearbits != 0) { - int bits = pdf_to_int(ctx, pdf_dict_get(ctx, obj, PDF_NAME(Ff))); + int bits = pdf_dict_get_int(ctx, obj, PDF_NAME(Ff)); bits &= ~clearbits; bits |= setbits; pdf_dict_put_int(ctx, obj, PDF_NAME(Ff), bits); |