xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lberna...@apache.org
Subject svn commit: r1453109 - /xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java
Date Wed, 06 Mar 2013 01:06:18 GMT
Author: lbernardo
Date: Wed Mar  6 01:06:18 2013
New Revision: 1453109

URL: http://svn.apache.org/r1453109
Log:
FOP-2217: Image scaling change was adversely affecting other image types; the consequence
is that the previous commit, associated with XGC-77, needs to be reverted.

Modified:
    xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java

Modified: xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java?rev=1453109&r1=1453108&r2=1453109&view=diff
==============================================================================
--- xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java
(original)
+++ xmlgraphics/fop-pdf-images/trunk/src/java/org/apache/fop/render/pdf/pdfbox/PreloaderPDF.java
Wed Mar  6 01:06:18 2013
@@ -43,7 +43,6 @@ import org.apache.xmlgraphics.image.load
 import org.apache.xmlgraphics.image.loader.ImageSize;
 import org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader;
 import org.apache.xmlgraphics.image.loader.util.ImageUtil;
-import org.apache.xmlgraphics.util.UnitConv;
 import org.apache.xmlgraphics.util.io.SubInputStream;
 
 import org.apache.fop.datatypes.URISpecification;
@@ -152,8 +151,7 @@ public class PreloaderPDF extends Abstra
         }
 
         ImageSize size = new ImageSize();
-        float ratioToDefault = context.getSourceResolution() / UnitConv.IN2PT;
-        size.setSizeInMillipoints((int)(w * ratioToDefault), (int)(h * ratioToDefault));
+        size.setSizeInMillipoints(w, h);
         size.setResolution(context.getSourceResolution());
         size.calcPixelsFromSize();
 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message