aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/util
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-05-31 13:41:50 +0000
committerJeremias Maerki <jeremias@apache.org>2006-05-31 13:41:50 +0000
commit4a1c328850ef3e44f35b164de6c67565a0705b9f (patch)
tree2ac64f7f25b100776c491bd61db8dd24fbed1f6b /src/java/org/apache/fop/util
parentf769a3e176f70db48ece9c2962e5e54175361b30 (diff)
downloadxmlgraphics-fop-4a1c328850ef3e44f35b164de6c67565a0705b9f.tar.gz
xmlgraphics-fop-4a1c328850ef3e44f35b164de6c67565a0705b9f.zip
Don't do rounding here. The caller might now want that.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/util')
-rw-r--r--src/java/org/apache/fop/util/UnitConv.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/util/UnitConv.java b/src/java/org/apache/fop/util/UnitConv.java
index 0c16cdc3f..939db056b 100644
--- a/src/java/org/apache/fop/util/UnitConv.java
+++ b/src/java/org/apache/fop/util/UnitConv.java
@@ -101,8 +101,8 @@ public final class UnitConv {
* @param resolution the resolution in dpi (dots per inch)
* @return the value in pixels
*/
- public static int mm2px(double mm, int resolution) {
- return (int)Math.round(mm2in(mm) * resolution);
+ public static double mm2px(double mm, int resolution) {
+ return mm2in(mm) * resolution;
}
/**
@@ -111,8 +111,8 @@ public final class UnitConv {
* @param resolution the resolution in dpi (dots per inch)
* @return the value in pixels
*/
- public static int mpt2px(double mpt, int resolution) {
- return (int)Math.round(mpt2in(mpt) * resolution);
+ public static double mpt2px(double mpt, int resolution) {
+ return mpt2in(mpt) * resolution;
}
}