From d381f313ae8d953dfdd8128039f1353078353430 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 7 Jun 2006 12:30:30 +0000 Subject: [PATCH] Add bookmarks even if one of the leaves didn't resolve. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@412389 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/area/AreaTreeHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/java/org/apache/fop/area/AreaTreeHandler.java b/src/java/org/apache/fop/area/AreaTreeHandler.java index 6b68a9f7d..a3b97805b 100644 --- a/src/java/org/apache/fop/area/AreaTreeHandler.java +++ b/src/java/org/apache/fop/area/AreaTreeHandler.java @@ -413,6 +413,10 @@ public class AreaTreeHandler extends FOEventHandler { if (bookmarkTree != null) { BookmarkData data = new BookmarkData(bookmarkTree); addOffDocumentItem(data); + if (!data.isResolved()) { + //bookmarks did not fully resolve, add anyway. (hacky? yeah) + model.handleOffDocumentItem(data); + } } model.endDocument(); -- 2.39.5