diff options
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java b/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java index 95fd78499..ad4aa79e4 100644 --- a/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java +++ b/src/java/org/apache/fop/layoutmgr/LayoutManagerLS.java @@ -149,13 +149,9 @@ public class LayoutManagerLS extends LayoutStrategy { data.addSubData(createBookmarkData(out)); } // add data to area tree for resolving and handling - if (document.getBookmarks().getFOInputHandler() instanceof FOTreeHandler) { - FOTreeHandler foth = (FOTreeHandler)document.getBookmarks().getFOInputHandler(); - Document doc = (Document)foth.foTreeControl; - AreaTree at = doc.getAreaTree(); - at.addTreeExtension(data); - data.setAreaTree(at); - } + AreaTree at = document.getAreaTree(); + at.addTreeExtension(data); + data.setAreaTree(at); } /** |