Author: acumiskey
Date: Mon Oct 20 06:18:39 2008
New Revision: 706274
URL: http://svn.apache.org/viewvc?rev=706274&view=rev
Log:
Absolute positioning border painting fixes.
Modified:
xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPBorderPainter.java
Modified:
xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPBorderPainter.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPBorderPainter.java?rev=706274&r1=706273&r2=706274&view=diff
==============================================================================
---
xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPBorderPainter.java
(original)
+++
xmlgraphics/fop/branches/Temp_AFPGOCAResources/src/java/org/apache/fop/render/afp/AFPBorderPainter.java
Mon Oct 20 06:18:39 2008
@@ -76,16 +76,16 @@
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]