diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-03-27 20:04:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-03-27 20:04:00 +0100 |
commit | e5ba425c9b486d5f4d32057e000bd7f6d91a2dde (patch) | |
tree | 581b1e487fbb34993d5bddd7704523f4b8716d3c /tex/context/base/lpdf-ano.lua | |
parent | c2a8ba5fa5bdccccb01eba49d21b1ecb63f12afe (diff) | |
download | context-e5ba425c9b486d5f4d32057e000bd7f6d91a2dde.tar.gz |
beta 2014.03.27 20:04
Diffstat (limited to 'tex/context/base/lpdf-ano.lua')
-rw-r--r-- | tex/context/base/lpdf-ano.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tex/context/base/lpdf-ano.lua b/tex/context/base/lpdf-ano.lua index 8c53eca8c..395b0e457 100644 --- a/tex/context/base/lpdf-ano.lua +++ b/tex/context/base/lpdf-ano.lua @@ -436,7 +436,7 @@ end -- we could share dictionaries ... todo -local function somedestination(destination,internal,page) +local function somedestination(destination,internal,page) -- no view anyway if references.innermethod ~= v_page then if type(destination) == "number" then if not internal then @@ -445,6 +445,7 @@ local function somedestination(destination,internal,page) destination = nil end if internal then + flaginternals[internal] = true -- for bookmarks and so local used = usedinternals[internal] if used == defaultview or used == true then return pagereferences[page] @@ -456,7 +457,9 @@ local function somedestination(destination,internal,page) S = pdf_goto, D = destination, } - elseif destination then + end + if destination then + -- hopefully this one is flushed return pdfdictionary { S = pdf_goto, D = destination, @@ -1048,8 +1051,9 @@ local function build(levels,start,parent,method) Title = pdfunicode(title), Parent = parent, Prev = prev and pdfreference(prev), + A = somedestination(reference.internal,reference.internal,reference.realpage), } - entry.Dest = somedestination(reference.internal,reference.internal,reference.realpage) + -- entry.Dest = somedestination(reference.internal,reference.internal,reference.realpage) if not first then first, last = child, child end prev = child last = prev |