aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/extensions')
-rw-r--r--src/java/org/apache/fop/fo/extensions/Bookmarks.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/Bookmarks.java b/src/java/org/apache/fop/fo/extensions/Bookmarks.java
index 8b5339012..e7d45f508 100644
--- a/src/java/org/apache/fop/fo/extensions/Bookmarks.java
+++ b/src/java/org/apache/fop/fo/extensions/Bookmarks.java
@@ -18,12 +18,14 @@
package org.apache.fop.fo.extensions;
+// Java
+import java.util.ArrayList;
+
+// FOP
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.FOTreeVisitor;
import org.apache.fop.fo.pagination.Root;
-import java.util.ArrayList;
-
/**
* Bookmarks data is the top level element of the pdf bookmark extension.
* This handles the adding of outlines. When the element is ended it
@@ -58,7 +60,7 @@ public class Bookmarks extends ExtensionObj {
* the bookmark data from the child elements and add
* the extension to the area tree.
*/
- public void end() {
+ protected void end() {
((Root) parent).setBookmarks(this);
}