aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-03-16 22:59:43 +0000
committerKaren Lease <klease@apache.org>2001-03-16 22:59:43 +0000
commit7eef483b8948a79ca9c45e4c8722236a69a77ce0 (patch)
tree5409dc11fb7a4ef518fcd9314676c88e554a4569 /src
parentbe40ee474ca49127435398fb7aff099609ea5d3f (diff)
downloadxmlgraphics-fop-7eef483b8948a79ca9c45e4c8722236a69a77ce0.tar.gz
xmlgraphics-fop-7eef483b8948a79ca9c45e4c8722236a69a77ce0.zip
Commit Art Welch fix to PCL borders
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rwxr-xr-xsrc/org/apache/fop/render/pcl/PCLRenderer.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/apache/fop/render/pcl/PCLRenderer.java b/src/org/apache/fop/render/pcl/PCLRenderer.java
index 3b0b17cb9..e38e12745 100755
--- a/src/org/apache/fop/render/pcl/PCLRenderer.java
+++ b/src/org/apache/fop/render/pcl/PCLRenderer.java
@@ -129,9 +129,9 @@ public class PCLRenderer extends PrintRenderer
PDFPathPaint stroke)
{
if ( x1 == x2 )
- addRect(x1, y1, th, y2 - y1 + 1, stroke, stroke);
+ addRect(x1 - (th/2), y1, th, y2 - y1 + 1, stroke, stroke);
else if ( y1 == y2 )
- addRect(x1, y1, x2 - x1 + 1, th, stroke, stroke);
+ addRect(x1, y1 + (th/2), x2 - x1 + 1, th, stroke, stroke);
}
/**
@@ -176,12 +176,12 @@ public class PCLRenderer extends PrintRenderer
{
if ( start + len > y2 )
len = y2 - start;
- addRect(x1, start, th, len, stroke, stroke);
+ addRect(x1 - (th/2), start, th, len, stroke, stroke);
start += (len + dashoff * th);
}
}
else
- addRect(x1, y1, th, y2 - y1 + 1, stroke, stroke);
+ addRect(x1 - (th/2), y1, th, y2 - y1 + 1, stroke, stroke);
}
else if ( y1 == y2 )
{
@@ -193,12 +193,12 @@ public class PCLRenderer extends PrintRenderer
{
if ( start + len > x2 )
len = x2 - start;
- addRect(start, y1, len, th, stroke, stroke);
+ addRect(start, y1 + (th/2), len, th, stroke, stroke);
start += (len + dashoff * th);
}
}
else
- addRect(x1, y1, x2 - x1 + 1, th, stroke, stroke);
+ addRect(x1, y1 + (th/2), x2 - x1 + 1, th, stroke, stroke);
}
}