You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ga...@apache.org on 2012/04/14 06:02:37 UTC
svn commit: r1326053 - in /xmlgraphics/fop/trunk:
src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java status.xml
Author: gadams
Date: Sat Apr 14 04:02:37 2012
New Revision: 1326053
URL: http://svn.apache.org/viewvc?rev=1326053&view=rev
Log:
Bugzilla #52514: Ensure square image is appropriately scaled.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java
xmlgraphics/fop/trunk/status.xml
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java?rev=1326053&r1=1326052&r2=1326053&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ImageLayout.java Sat Apr 14 04:02:37 2012
@@ -228,6 +228,9 @@ public class ImageLayout implements Cons
} else if (rat1 > rat2) {
adjusted.width = (int)(rat2 * size.width);
adjusted.height = effHeight;
+ } else {
+ adjusted.width = effWidth;
+ adjusted.height = effHeight;
}
} else {
adjusted.width = effWidth;
Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=1326053&r1=1326052&r2=1326053&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Sat Apr 14 04:02:37 2012
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org