]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #52514: Ensure square image is appropriately scaled.
authorGlenn Adams <gadams@apache.org>
Sat, 14 Apr 2012 04:02:37 +0000 (04:02 +0000)
committerGlenn Adams <gadams@apache.org>
Sat, 14 Apr 2012 04:02:37 +0000 (04:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1326053 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java
status.xml

index 4c6bc1f3f4e4d5b7f12ad1ca0298b299f63c7683..31ede9aeef2e288e61391a0f5a6336609183cbca 100644 (file)
@@ -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;
index 3d91908f2fb08e684b4f99985d7e9fa81523e131..95f6406395f7fb355d4e3f72d4bc652f504655c1 100644 (file)
@@ -62,6 +62,9 @@
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Code" dev="GA" type="fix" fixes-bug="52514" due-to="Luis Bernardo">
+        Ensure square image is appropriately scaled.
+      </action>
       <action context="Code" dev="GA" type="fix" fixes-bug="50062">
         Invoke JVM in headless mode from FOP command scripts and JS shell to prevent stealing focus from GUI applications.
       </action>