diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-04 13:13:29 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-04 13:13:29 +0000 |
commit | 2851b9c98ae24bf423b9ad8451cadaef919e8ac7 (patch) | |
tree | 45ec0f8cd2a37db28ac60f44cdb9006b4d091582 /src/java/org/apache/fop/render/java2d/Java2DRenderer.java | |
parent | adb107e63294d03f1571a913a9ee0d26bdedd4c4 (diff) | |
download | xmlgraphics-fop-2851b9c98ae24bf423b9ad8451cadaef919e8ac7.tar.gz xmlgraphics-fop-2851b9c98ae24bf423b9ad8451cadaef919e8ac7.zip |
Minor readability improvement.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/java2d/Java2DRenderer.java')
-rw-r--r-- | src/java/org/apache/fop/render/java2d/Java2DRenderer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/java2d/Java2DRenderer.java b/src/java/org/apache/fop/render/java2d/Java2DRenderer.java index e39ae5831..5996c5d0c 100644 --- a/src/java/org/apache/fop/render/java2d/Java2DRenderer.java +++ b/src/java/org/apache/fop/render/java2d/Java2DRenderer.java @@ -539,7 +539,9 @@ public abstract class Java2DRenderer extends AbstractPathOrientedRenderer implem protected void drawBorderLine(float x1, float y1, float x2, float y2, boolean horz, boolean startOrBefore, int style, Color col) { Graphics2D g2d = state.getGraph(); - drawBorderLine(new Rectangle2D.Float(x1, y1, x2 - x1, y2 - y1), + float width = x2 - x1; + float height = y2 - y1; + drawBorderLine(new Rectangle2D.Float(x1, y1, width, height), horz, startOrBefore, style, col, g2d); } |