summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-16 17:50:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-18 08:40:17 +0000
commitd807cba9ee60cb1404b54addf9cd3e54de89f331 (patch)
treee40e69eb986dfe8cee84a90231d80ec0be84165c /qadevOOo
parentb6c32f3fd330d4297fc448a090d8c95bed11b02d (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 'qadevOOo')
-rw-r--r--qadevOOo/runner/convwatch/BorderRemover.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/qadevOOo/runner/convwatch/BorderRemover.java b/qadevOOo/runner/convwatch/BorderRemover.java
index 09cc785d43f0..87ba90a42456 100644
--- a/qadevOOo/runner/convwatch/BorderRemover.java
+++ b/qadevOOo/runner/convwatch/BorderRemover.java
@@ -77,7 +77,7 @@ class BorderRemover
}
// calculate tolerance halve
- double nTolerable = (_nTolerance * 256 / 100);
+ int nTolerable = (int) (_nTolerance * 256.0 / 100.0);
if (nTolerable < 0)
{
nTolerable = 0;