diff options
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()); |