summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-fld.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-06-26 12:20:16 +0300
committerMarius <mariausol@gmail.com>2011-06-26 12:20:16 +0300
commitde576a467c1e444aa8ea9fb9ce5d944d795aac6b (patch)
treea6e4b2e03b9be15c7f9c2243f194e249eedc39a4 /tex/context/base/lpdf-fld.lua
parent9963d62aabbced75e14b6d5985f2955551210252 (diff)
downloadcontext-de576a467c1e444aa8ea9fb9ce5d944d795aac6b.tar.gz
beta 2011.06.25 14:54
Diffstat (limited to 'tex/context/base/lpdf-fld.lua')
-rw-r--r--tex/context/base/lpdf-fld.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/tex/context/base/lpdf-fld.lua b/tex/context/base/lpdf-fld.lua
index f24e39e1a..1aa1377e5 100644
--- a/tex/context/base/lpdf-fld.lua
+++ b/tex/context/base/lpdf-fld.lua
@@ -368,14 +368,15 @@ local function fieldstates(specification,forceyes,values,default)
else
default = pdf_off
end
+ local appearance
if false then -- needs testing
- local appearance = pdfdictionary { -- maybe also cache components
+ appearance = pdfdictionary { -- maybe also cache components
N = pdfshareobjectreference(pdfdictionary { [forceyes or yesn] = registeredsymbol(yesn), Off = registeredsymbol(offn) }),
R = pdfshareobjectreference(pdfdictionary { [forceyes or yesr] = registeredsymbol(yesr), Off = registeredsymbol(offr) }),
D = pdfshareobjectreference(pdfdictionary { [forceyes or yesd] = registeredsymbol(yesd), Off = registeredsymbol(offd) }),
}
else
- local appearance = pdfdictionary { -- maybe also cache components
+ appearance = pdfdictionary { -- maybe also cache components
N = pdfdictionary { [forceyes or yesn] = registeredsymbol(yesn), Off = registeredsymbol(offn) },
R = pdfdictionary { [forceyes or yesr] = registeredsymbol(yesr), Off = registeredsymbol(offr) },
D = pdfdictionary { [forceyes or yesd] = registeredsymbol(yesd), Off = registeredsymbol(offd) }
@@ -883,7 +884,7 @@ end
local function makecheckparent(field,specification)
local d = pdfdictionary {
- T = pdfunicode(specification.title),
+ T = pdfunicode(specification.title), -- todo: when tracing use a string
F = fieldplus(specification),
Ff = fieldflag(specification),
OC = fieldlayer(specification),