diff options
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/util/UnitConv.java | 8 |
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; } } |