diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-07-27 13:58:03 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-07-27 13:58:03 +0000 |
commit | dca070be5e6df1aaab2df6cdd23fa86a2c0c4038 (patch) | |
tree | a6480549def445ca76c0c7b7e76b9eb94aa524f0 /src/java | |
parent | cdf6ec8d595ed979593dfc42eb278887ec665dd3 (diff) | |
download | xmlgraphics-fop-dca070be5e6df1aaab2df6cdd23fa86a2c0c4038.tar.gz xmlgraphics-fop-dca070be5e6df1aaab2df6cdd23fa86a2c0c4038.zip |
Bugfix: scaling factor was calculated using an integer division, not a double division.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225509 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/inline/ExternalGraphicLayoutManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/inline/ExternalGraphicLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/ExternalGraphicLayoutManager.java index 2be4ea14f..cc5dd8ca7 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/ExternalGraphicLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/ExternalGraphicLayoutManager.java @@ -126,8 +126,8 @@ public class ExternalGraphicLayoutManager extends LeafNodeLayoutManager { / fobj.getIntrinsicWidth()); } else { // adjust the larger - double rat1 = cwidth / fobj.getIntrinsicWidth(); - double rat2 = cheight / fobj.getIntrinsicHeight(); + double rat1 = (double)cwidth / fobj.getIntrinsicWidth(); + double rat2 = (double)cheight / fobj.getIntrinsicHeight(); if (rat1 < rat2) { // reduce cheight cheight = (int)(rat1 * fobj.getIntrinsicHeight()); |