From: Jeremias Maerki Date: Mon, 31 Jan 2005 13:52:12 +0000 (+0000) Subject: table-cell generates a normal reference-area. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~160 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38c76806d428e76201059957e2509a9b0172f020;p=xmlgraphics-fop.git table-cell generates a normal reference-area. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198347 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/table/Cell.java b/src/java/org/apache/fop/layoutmgr/table/Cell.java index 94983cbe9..e3c5bad18 100644 --- a/src/java/org/apache/fop/layoutmgr/table/Cell.java +++ b/src/java/org/apache/fop/layoutmgr/table/Cell.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2004 The Apache Software Foundation. + * Copyright 1999-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,6 +30,7 @@ import org.apache.fop.layoutmgr.Position; import org.apache.fop.layoutmgr.TraitSetter; import org.apache.fop.area.Area; import org.apache.fop.area.Block; +import org.apache.fop.area.Trait; import org.apache.fop.traits.MinOptMax; import java.util.ArrayList; @@ -218,6 +219,7 @@ public class Cell extends BlockStackingLayoutManager { public Area getParentArea(Area childArea) { if (curBlockArea == null) { curBlockArea = new Block(); + curBlockArea.addTrait(Trait.IS_REFERENCE_AREA, Boolean.TRUE); curBlockArea.setPositioning(Block.ABSOLUTE); // set position curBlockArea.setXOffset(xoffset);