From 1aa20c5c46f9dbc982a8e890782c5b78df72ead7 Mon Sep 17 00:00:00 2001 From: Chris Bowditch Date: Tue, 29 Dec 2009 15:15:26 +0000 Subject: Bugfix: 48456 AFP Renderer: Underline is incorrectly placed when reference-orientation != 0 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@894416 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/afp/AFPRectanglePainter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/java/org/apache/fop/afp/AFPRectanglePainter.java b/src/java/org/apache/fop/afp/AFPRectanglePainter.java index e2bad6159..5b79a3f57 100644 --- a/src/java/org/apache/fop/afp/AFPRectanglePainter.java +++ b/src/java/org/apache/fop/afp/AFPRectanglePainter.java @@ -76,7 +76,7 @@ public class AFPRectanglePainter extends AbstractAFPPainter { case 270: 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); + lineDataInfo.x2 = pageHeight - Math.round((float)at.getTranslateY() - x - width); break; } dataStream.createLine(lineDataInfo); -- cgit v1.2.3