]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Slight mods for BodyAreaContainer
authorarved <arved@unknown>
Mon, 18 Dec 2000 03:51:47 +0000 (03:51 +0000)
committerarved <arved@unknown>
Mon, 18 Dec 2000 03:51:47 +0000 (03:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193899 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/flow/BasicLink.java
src/org/apache/fop/fo/pagination/PageSequence.java

index aa07d6f7a463835800c344a7bcb8935737c93021..aff4a038088bef8c5e47c20cf961d35f2e404c6f 100644 (file)
@@ -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++) {
index ee7f0deeb685e9f2beade25c3bb522cb54a869f0..8ed4b0d4c13fb822236ee94a902d59bf7c217068 100644 (file)
@@ -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);