From: Glenn Adams Date: Sat, 14 Apr 2012 04:02:37 +0000 (+0000) Subject: Bugzilla #52514: Ensure square image is appropriately scaled. X-Git-Tag: fop-1_1rc1old~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c558c69c28d79abd0710dba0651e4cd97a4e192;p=xmlgraphics-fop.git Bugzilla #52514: Ensure square image is appropriately scaled. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1326053 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java b/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java index 4c6bc1f3f..31ede9aee 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java +++ b/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java @@ -228,6 +228,9 @@ public class ImageLayout implements Constants { } else if (rat1 > rat2) { adjusted.width = (int)(rat2 * size.width); adjusted.height = effHeight; + } else { + adjusted.width = effWidth; + adjusted.height = effHeight; } } else { adjusted.width = effWidth; diff --git a/status.xml b/status.xml index 3d91908f2..95f640639 100644 --- a/status.xml +++ b/status.xml @@ -62,6 +62,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Ensure square image is appropriately scaled. + Invoke JVM in headless mode from FOP command scripts and JS shell to prevent stealing focus from GUI applications.