]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
pt -> mpt conversion must round.
authorJeremias Maerki <jeremias@apache.org>
Tue, 26 Aug 2008 09:05:13 +0000 (09:05 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 26 Aug 2008 09:05:13 +0000 (09:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@689003 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/intermediate/IFRenderer.java

index 1ea3f95921f592ea0e40f63ddc626075f53d2fc8..fa6013a52ae6c611cb4e22c4cef52a1776bc5cdd 100644 (file)
@@ -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) {