// 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++) {
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;
}
else
{
- AreaContainer bodyArea = currentPage.getBody();
+ BodyAreaContainer bodyArea = currentPage.getBody();
bodyArea.setIDReferences(areaTree.getIDReferences());
Flow flow = getCurrentFlow(RegionBody.REGION_CLASS);