diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-20 13:18:39 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-10-20 13:18:39 +0000 |
commit | a783929836aa4ce548b5421c9d76fe2a838dbae8 (patch) | |
tree | c60eb9b4dffea908a700c517d6eeb88c7ac7da4c | |
parent | e234d476d32c4f71aad1c02965d5376ebbe4cce3 (diff) | |
download | xmlgraphics-fop-a783929836aa4ce548b5421c9d76fe2a838dbae8.tar.gz xmlgraphics-fop-a783929836aa4ce548b5421c9d76fe2a838dbae8.zip |
Absolute positioning border painting fixes.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@706274 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPBorderPainter.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPBorderPainter.java b/src/java/org/apache/fop/render/afp/AFPBorderPainter.java index e8fa4d83e..d73154997 100644 --- a/src/java/org/apache/fop/render/afp/AFPBorderPainter.java +++ b/src/java/org/apache/fop/render/afp/AFPBorderPainter.java @@ -76,16 +76,16 @@ public class AFPBorderPainter { case 90: lineDataInfo.x1 = Math.round((float)at.getTranslateY() + x); lineDataInfo.y1 = lineDataInfo.y2 - = pageWidth - Math.round((float)at.getTranslateX() + y); + = pageWidth - Math.round((float)at.getTranslateX()) + Math.round(y); lineDataInfo.x2 = Math.round(width + (float)at.getTranslateY() + x); break; case 180: lineDataInfo.x1 = pageWidth - Math.round((float)at.getTranslateX() - x); - lineDataInfo.y1 = lineDataInfo.y2 = pageHeight - Math.round((float)at.getTranslateY() - x); + lineDataInfo.y1 = lineDataInfo.y2 = pageHeight - Math.round((float)at.getTranslateY() - y); lineDataInfo.x2 = pageWidth - Math.round((float)at.getTranslateX() - x - width); break; case 270: - lineDataInfo.x1 = pageHeight - Math.round((float)at.getTranslateY() + y - x); + lineDataInfo.x1 = pageHeight - Math.round((float)at.getTranslateY() - x); lineDataInfo.y1 = lineDataInfo.y2 = Math.round((float)at.getTranslateX() + y); lineDataInfo.x2 = lineDataInfo.x1 + Math.round(width - x); break; |