diff options
author | Glen Mazza <gmazza@apache.org> | 2004-12-23 01:36:01 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-12-23 01:36:01 +0000 |
commit | 43decd1c0ddf36756615f96bbc089f6b7027afa0 (patch) | |
tree | fb4044a1a324d91ba5361c18993bd85e046e6e3c /src/java | |
parent | 344f3faf836d2045b9481b4ffe2b955233d32280 (diff) | |
download | xmlgraphics-fop-43decd1c0ddf36756615f96bbc089f6b7027afa0.tar.gz xmlgraphics-fop-43decd1c0ddf36756615f96bbc089f6b7027afa0.zip |
Very minor edits to Bookmark handling code.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFRenderer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java index 714cd9d0c..abd2357c8 100644 --- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java @@ -300,7 +300,6 @@ public class PDFRenderer extends PrintRenderer { } private void renderOutline(BookmarkData outline, PDFOutline parentOutline) { - PDFOutline outlineRoot = pdfDoc.getOutlineRoot(); PDFOutline pdfOutline = null; PageViewport pv = outline.getPageViewport(); if (pv != null) { @@ -309,11 +308,11 @@ public class PDFRenderer extends PrintRenderer { float yoffset = (float)h / 1000f; String intDest = (String)pageReferences.get(pv.getKey()); if (parentOutline == null) { + PDFOutline outlineRoot = pdfDoc.getOutlineRoot(); pdfOutline = pdfDoc.getFactory().makeOutline(outlineRoot, outline.getLabel(), intDest, yoffset); } else { - PDFOutline pdfParentOutline = parentOutline; - pdfOutline = pdfDoc.getFactory().makeOutline(pdfParentOutline, + pdfOutline = pdfDoc.getFactory().makeOutline(parentOutline, outline.getLabel(), intDest, yoffset); } } |