From: arved Date: Sun, 2 Apr 2000 03:48:29 +0000 (+0000) Subject: Thorough rewrite to support new approach X-Git-Tag: pre-columns~546 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8cc5bcdd5dcfee4934bfdc35bb580eff6721342;p=xmlgraphics-fop.git Thorough rewrite to support new approach git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193318 13f79535-47bb-0310-9956-ffa450edef68 --- 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);