aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/intermediate
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-08-26 09:05:13 +0000
committerJeremias Maerki <jeremias@apache.org>2008-08-26 09:05:13 +0000
commit26500495c3ccf9f1db43c4179b14800ff267b3d5 (patch)
treed8b94b8bc55359de4d0481dedcb9fcdadd61a35a /src/java/org/apache/fop/render/intermediate
parent8f8a366431e21e06fe4658582ab8c7429d1d193a (diff)
downloadxmlgraphics-fop-26500495c3ccf9f1db43c4179b14800ff267b3d5.tar.gz
xmlgraphics-fop-26500495c3ccf9f1db43c4179b14800ff267b3d5.zip
pt -> mpt conversion must round.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@689003 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/intermediate')
-rw-r--r--src/java/org/apache/fop/render/intermediate/IFRenderer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFRenderer.java b/src/java/org/apache/fop/render/intermediate/IFRenderer.java
index 1ea3f9592..fa6013a52 100644
--- a/src/java/org/apache/fop/render/intermediate/IFRenderer.java
+++ b/src/java/org/apache/fop/render/intermediate/IFRenderer.java
@@ -1060,7 +1060,7 @@ public class IFRenderer extends AbstractPathOrientedRenderer {
}
private int toMillipoints(float coordinate) {
- return (int)(coordinate * 1000);
+ return Math.round(coordinate * 1000);
}
private Rectangle toMillipointRectangle(float x, float y, float width, float height) {