git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194043
13f79535-47bb-0310-9956-
ffa450edef68
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);