artw 01/10/12 14:36:45 Modified: src/org/apache/fop/render/pcl PCLRenderer.java Log: Correct border printing problem. Revision Changes Path 1.13 +11 -6 xml-fop/src/org/apache/fop/render/pcl/PCLRenderer.java Index: PCLRenderer.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pcl/PCLRenderer.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- PCLRenderer.java 2001/09/11 10:04:25 1.12 +++ PCLRenderer.java 2001/10/12 21:36:45 1.13 @@ -1,5 +1,5 @@ /* - * $Id: PCLRenderer.java,v 1.12 2001/09/11 10:04:25 keiron Exp $ + * $Id: PCLRenderer.java,v 1.13 2001/10/12 21:36:45 artw 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. @@ -166,14 +166,16 @@ * @param stroke the stroke color/gradient */ protected void addRect(int x, int y, int w, int h, PDFPathPaint stroke) { - if (h < 0) - h *= -1; + //if (h < 0) + // h *= -1; - if (h < 720 || w < 720) { + if ((h >= 0 && h < 720) || (h < 0 && h > -720) || w < 720) { if (w < 720) w = 720; - if (h < 720) + if (h > 0 && h < 720) h = 720; + else if (h < 0 && h > -720) + h = -720; addRect(x, y, w, h, stroke, stroke); } else { addRect(x, y, w, 720, stroke, stroke); @@ -198,7 +200,10 @@ if ((w == 0) || (h == 0)) return; if (h < 0) - h *= -1; + h *= -1; + else + y += h; + PDFColor sc = (PDFColor)stroke; PDFColor fc = (PDFColor)fill;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]