You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ar...@apache.org on 2001/02/11 00:11:32 UTC
cvs commit: xml-fop/src/org/apache/fop/fo/flow BasicLink.java
arved 01/02/10 15:11:32
Modified: src/org/apache/fop/fo/flow BasicLink.java
Log:
BasicLink won't break in static-content; more work required for proper placement
Revision Changes Path
1.4 +6 -4 xml-fop/src/org/apache/fop/fo/flow/BasicLink.java
Index: BasicLink.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/BasicLink.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BasicLink.java 2001/01/04 03:27:51 1.3
+++ BasicLink.java 2001/02/10 23:11:31 1.4
@@ -117,10 +117,12 @@
Page p = area.getPage();
- // this will only work if links are in region-body (AHS);
- // need to handle links in all regions
- AreaContainer ac = p.getBody().getCurrentColumnArea();
-
+ AreaContainer ac = area.getNearestAncestorAreaContainer();
+ if (ac == null)
+ {
+ throw new FOPException("Couldn't get ancestor AreaContainer when processing basic-link");
+ }
+
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
FONode fo = (FONode) children.elementAt(i);