aboutsummaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/apache/fop/fo/flow/BasicLink.java2
-rw-r--r--src/org/apache/fop/fo/pagination/PageSequence.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/flow/BasicLink.java b/src/org/apache/fop/fo/flow/BasicLink.java
index aa07d6f7a..aff4a0380 100644
--- a/src/org/apache/fop/fo/flow/BasicLink.java
+++ b/src/org/apache/fop/fo/flow/BasicLink.java
@@ -119,7 +119,7 @@ public class BasicLink extends FObjMixed {
// assumption - AS
// should be able to retrieve this from somewhere - JT
- AreaContainer ac = p.getBody();
+ AreaContainer ac = p.getBody().getMainReferenceArea();
int numChildren = this.children.size();
for (int i = this.marker; i < numChildren; i++) {
diff --git a/src/org/apache/fop/fo/pagination/PageSequence.java b/src/org/apache/fop/fo/pagination/PageSequence.java
index ee7f0deeb..8ed4b0d4c 100644
--- a/src/org/apache/fop/fo/pagination/PageSequence.java
+++ b/src/org/apache/fop/fo/pagination/PageSequence.java
@@ -59,6 +59,7 @@ import org.apache.fop.fo.flow.Flow;
import org.apache.fop.fo.flow.StaticContent;
import org.apache.fop.layout.Area;
import org.apache.fop.layout.AreaContainer;
+import org.apache.fop.layout.BodyAreaContainer;
import org.apache.fop.layout.AreaTree;
import org.apache.fop.layout.Page;
import org.apache.fop.layout.PageMaster;
@@ -299,7 +300,7 @@ public class PageSequence extends FObj
}
else
{
- AreaContainer bodyArea = currentPage.getBody();
+ BodyAreaContainer bodyArea = currentPage.getBody();
bodyArea.setIDReferences(areaTree.getIDReferences());
Flow flow = getCurrentFlow(RegionBody.REGION_CLASS);