From 43decd1c0ddf36756615f96bbc089f6b7027afa0 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Thu, 23 Dec 2004 01:36:01 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/pdf/PDFRenderer.java | 5 ++--- 1 file 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); } } -- 2.39.5