summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArt Welch <artw@apache.org>2001-10-12 21:36:45 +0000
committerArt Welch <artw@apache.org>2001-10-12 21:36:45 +0000
commitc79d0ec1f43465021f0b822e1af740290ad86db0 (patch)
tree1c335cc16f569e1baca3b7eaf6e1c8f33edeb6a0 /src
parent1966af6be536822936f8877e51d8c28ce0a3472e (diff)
downloadxmlgraphics-fop-c79d0ec1f43465021f0b822e1af740290ad86db0.tar.gz
xmlgraphics-fop-c79d0ec1f43465021f0b822e1af740290ad86db0.zip
Correct border printing problem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194501 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rwxr-xr-xsrc/org/apache/fop/render/pcl/PCLRenderer.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/org/apache/fop/render/pcl/PCLRenderer.java b/src/org/apache/fop/render/pcl/PCLRenderer.java
index 36dd0f703..a11ee2bcb 100755
--- a/src/org/apache/fop/render/pcl/PCLRenderer.java
+++ b/src/org/apache/fop/render/pcl/PCLRenderer.java
@@ -166,14 +166,16 @@ public class PCLRenderer extends PrintRenderer {
* @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);
@@ -199,6 +201,9 @@ public class PCLRenderer extends PrintRenderer {
return;
if (h < 0)
h *= -1;
+ else
+ y += h;
+
PDFColor sc = (PDFColor)stroke;
PDFColor fc = (PDFColor)fill;