From a783929836aa4ce548b5421c9d76fe2a838dbae8 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Mon, 20 Oct 2008 13:18:39 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/afp/AFPBorderPainter.java | 6 +++--- 1 file 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; -- 2.39.5