summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-appearance.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-07-25 17:32:07 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-08-10 14:09:46 +0200
commit5f63c45b41f5207c864915dd2c42b9a484fb3592 (patch)
tree5ce6abb61e42dff86e1fd9ed67f2d27123c6c9a6 /source/pdf/pdf-appearance.c
parent2c066546c7b4de7836a16f04528fec86fc2cc787 (diff)
downloadmupdf-5f63c45b41f5207c864915dd2c42b9a484fb3592.tar.xz
Use proper name space for form field flag constants.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r--source/pdf/pdf-appearance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c
index fb5b8343..84c899cd 100644
--- a/source/pdf/pdf-appearance.c
+++ b/source/pdf/pdf-appearance.c
@@ -1045,12 +1045,12 @@ pdf_write_tx_widget_appearance(fz_context *ctx, pdf_annot *annot, fz_buffer *buf
b = 0;
}
- if (ff & Ff_Comb)
+ if (ff & PDF_TX_FIELD_IS_COMB)
{
int maxlen = pdf_to_int(ctx, pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(MaxLen)));
write_variable_text(ctx, annot, buf, res, text, font, size, color, q, w, h, 0, 0, 0, maxlen);
}
- else if (ff & Ff_Multiline)
+ else if (ff & PDF_TX_FIELD_IS_MULTILINE)
write_variable_text(ctx, annot, buf, res, text, font, size, color, q, w, h, b*2+2, b*2, 1, 0);
else
write_variable_text(ctx, annot, buf, res, text, font, size, color, q, w, h, b*2+2, b*2, 0, 0);