diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2012-11-01 16:04:53 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2012-11-01 16:04:53 +0000 |
commit | 2fb4c3456691f240aeb5807296a3b51cbaeb50d1 (patch) | |
tree | 01350bef8342ad972ab2642564ca68163e2ca643 /pdf/pdf_object.c | |
parent | f3ffb15def9ba38f78188197d63db7021411a284 (diff) | |
download | mupdf-2fb4c3456691f240aeb5807296a3b51cbaeb50d1.tar.xz |
Forms: extend setFillColor implementation to include text widgets
Also update pdf_dict_puts so that passing NULL to val deletes the terminal
key.
Update pdfapp.c to update the screen between passing a mouse event and
invoking a dialog box for value entry
Extend javascript wrapper to handle all color spaces
Diffstat (limited to 'pdf/pdf_object.c')
-rw-r--r-- | pdf/pdf_object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf/pdf_object.c b/pdf/pdf_object.c index 77e1da74..a28743d1 100644 --- a/pdf/pdf_object.c +++ b/pdf/pdf_object.c @@ -1038,7 +1038,11 @@ pdf_dict_putp(pdf_obj *obj, const char *keys, pdf_obj *val) else { /* Last key. Use it to store the value */ - pdf_dict_puts(obj, k, val); + /* Use val = NULL to request delete */ + if (val) + pdf_dict_puts(obj, k, val); + else + pdf_dict_dels(obj, k); } } } |