From a8cc5bcdd5dcfee4934bfdc35bb580eff6721342 Mon Sep 17 00:00:00 2001 From: arved Date: Sun, 2 Apr 2000 03:48:29 +0000 Subject: [PATCH] Thorough rewrite to support new approach git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193318 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/SimpleLink.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/org/apache/fop/fo/flow/SimpleLink.java b/src/org/apache/fop/fo/flow/SimpleLink.java index 370a66b5a..6566cc371 100644 --- a/src/org/apache/fop/fo/flow/SimpleLink.java +++ b/src/org/apache/fop/fo/flow/SimpleLink.java @@ -99,7 +99,7 @@ public class SimpleLink extends FObjMixed { } // new LinkedArea to gather up inlines - LinkSet ls = new LinkSet(externalDest); + LinkSet ls = new LinkSet(externalDest, area); Page p = area.getPage(); @@ -111,7 +111,7 @@ public class SimpleLink extends FObjMixed { for (int i = this.marker; i < numChildren; i++) { FONode fo = (FONode) children.elementAt(i); fo.setLinkSet(ls); - + Status status; if ((status = fo.layout(area)).isIncomplete()) { this.marker = i; @@ -121,8 +121,11 @@ public class SimpleLink extends FObjMixed { ls.applyAreaContainerOffsets(ac); - // comment this out to see individual words linked - ls.mergeLinks(); + // pass on command line + String mergeLinks = System.getProperty( "links.merge" ); + if ((null != mergeLinks) && !mergeLinks.equalsIgnoreCase("no")) { + ls.mergeLinks(); + } p.addLinkSet(ls); -- 2.39.5