diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-16 17:50:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-18 08:40:17 +0000 |
commit | d807cba9ee60cb1404b54addf9cd3e54de89f331 (patch) | |
tree | e40e69eb986dfe8cee84a90231d80ec0be84165c /reportbuilder | |
parent | b6c32f3fd330d4297fc448a090d8c95bed11b02d (diff) |
java: loss of precission
Change-Id: I0563a76b1d2c838e6301bf7a9ed154c77a98c0d9
Reviewed-on: https://gerrit.libreoffice.org/12000
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'reportbuilder')
-rw-r--r-- | reportbuilder/java/org/libreoffice/report/SOImageService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/SOImageService.java b/reportbuilder/java/org/libreoffice/report/SOImageService.java index 1979c4fd504a..7070038bc11d 100644 --- a/reportbuilder/java/org/libreoffice/report/SOImageService.java +++ b/reportbuilder/java/org/libreoffice/report/SOImageService.java @@ -103,7 +103,7 @@ public class SOImageService implements ImageService { final Size imageSize = (Size) xImage.getPropertyValue("SizePixel"); final int dpi = java.awt.Toolkit.getDefaultToolkit().getScreenResolution(); - final double fac = 2540 / dpi; + final double fac = 2540.0 / dpi; dim.Width = (int) (imageSize.Width * fac); dim.Height = (int) (imageSize.Height * fac); } |