]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed border position for areas with padding (only affects "quality" border rendering).
authorJeremias Maerki <jeremias@apache.org>
Thu, 1 Jun 2006 09:02:05 +0000 (09:02 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 1 Jun 2006 09:02:05 +0000 (09:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410803 13f79535-47bb-0310-9956-ffa450edef68

src/sandbox/org/apache/fop/render/pcl/PCLRenderer.java

index 2e2366daa3cab51aef079db0fa215e3e59fb442b..05952d933abde08710295b3b41c1ee43ff6aaacf 100644 (file)
@@ -1224,7 +1224,7 @@ public class PCLRenderer extends PrintRenderer {
                 (int)Math.floor(borderRect.height * 1000f) + 1);
         //Add one pixel wide safety margin around the paint area
         int pixelWidth = (int)Math.round(UnitConv.in2mpt(1) / userAgent.getTargetResolution());
-        final int xoffset = (bpsStart != null ? bpsStart.width : 0) + pixelWidth;
+        final int xoffset = (int)Math.round(-effBorderRect.x * 1000f) + pixelWidth;
         final int yoffset = pixelWidth;
         paintRect.x += xoffset;
         paintRect.y += yoffset;