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 kl...@apache.org on 2001/04/11 23:45:17 UTC

cvs commit: xml-fop/src/org/apache/fop/render PrintRenderer.java

klease      01/04/11 14:45:17

  Modified:    src/org/apache/fop/render PrintRenderer.java
  Log:
  Correct bug with AreaContainer positioning
  
  Revision  Changes    Path
  1.4       +10 -1     xml-fop/src/org/apache/fop/render/PrintRenderer.java
  
  Index: PrintRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/PrintRenderer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PrintRenderer.java	2001/03/23 21:17:40	1.3
  +++ PrintRenderer.java	2001/04/11 21:45:17	1.4
  @@ -1,4 +1,4 @@
  -/* $Id: PrintRenderer.java,v 1.3 2001/03/23 21:17:40 klease Exp $
  +/* $Id: PrintRenderer.java,v 1.4 2001/04/11 21:45:17 klease Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources."
  @@ -188,11 +188,20 @@
               Box b = (Box) e.nextElement();
               b.render(this);
           }
  +	// Restore previous origin
  +	this.currentYPosition = saveY;
  +	this.currentAreaContainerXPosition = saveX;
  +        if (area.getPosition() == Position.STATIC) {
  +            this.currentYPosition -= area.getHeight();
  +	}
  +
  +	/****
           if (area.getPosition() != Position.STATIC) {
               this.currentYPosition = saveY;
               this.currentAreaContainerXPosition = saveX;
           } else
               this.currentYPosition -= area.getHeight();
  +	*****/
       }
   
   	public void renderBodyAreaContainer(BodyAreaContainer area) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org