aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFRenderer.java5
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);
}
}