You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by jo...@locus.apache.org on 2000/07/19 19:18:30 UTC

cvs commit: xml-fop/src/org/apache/fop/fo/flow TableRow.java

jordan      00/07/19 10:18:29

  Modified:    src/org/apache/fop/fo/flow TableRow.java
  Log:
  Fixed table overflow bug
  
  Revision  Changes    Path
  1.17      +13 -4     xml-fop/src/org/apache/fop/fo/flow/TableRow.java
  
  Index: TableRow.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableRow.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TableRow.java	2000/06/29 22:24:01	1.16
  +++ TableRow.java	2000/07/19 17:18:28	1.17
  @@ -1,4 +1,4 @@
  -/*-- $Id: TableRow.java,v 1.16 2000/06/29 22:24:01 jordan Exp $ -- 
  +/*-- $Id: TableRow.java,v 1.17 2000/07/19 17:18:28 jordan Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -197,9 +197,10 @@
   		if ((i != 0) && (status.getCode() == Status.AREA_FULL_NONE)) {
   		    status = new Status(Status.AREA_FULL_SOME);
   		}
  -    	        area.addChild(areaContainer);
  -		//areaContainer.end();
  -		area.addDisplaySpace(areaContainer.getHeight());
  +    	        
  +                resetMarker();
  +                area.removeChild(areaContainer);                
  +
   		return status;
   	    }
   
  @@ -229,6 +230,14 @@
   	}
   
   	return new Status(Status.OK);
  +    }
  +
  +    public void resetMarker() {
  +	this.marker = START;
  +	int numChildren = this.children.size();
  +	for (int i = 0; i < numChildren; i++) {
  +	    ((FONode) children.elementAt(i)).resetMarker();
  +	}
       }
   
       public int getAreaHeight() {