Author: gadams
Date: Wed May 16 01:12:02 2012
New Revision: 1338967
URL: http://svn.apache.org/viewvc?rev=1338967&view=rev
Log:
Bugzilla #40699: Fix for invalid PDF for certain numerical values in SVG
lineargradient.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
xmlgraphics/fop/trunk/status.xml
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java?rev=1338967&r1=1338966&r2=1338967&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/svg/PDFGraphics2D.java Wed
May 16 01:12:02 2012
@@ -1171,8 +1171,8 @@ public class PDFGraphics2D extends Abstr
currentStream.write("q\n");
writeClip(shape);
- currentStream.write("" + usrW + " 0 0 " + (-usrH) + " " + usrX
- + " " + (usrY + usrH) + " cm\n"
+ currentStream.write("" + PDFNumber.doubleOut(usrW) + " 0 0 " +
PDFNumber.doubleOut(-usrH) + " "
+ + PDFNumber.doubleOut(usrX) + " " + PDFNumber.doubleOut(usrY +
usrH) + " cm\n"
+ imageInfo.getName() + " Do\nQ\n");
return true;
}
Modified: xmlgraphics/fop/trunk/status.xml
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=1338967&r1=1338966&r2=1338967&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Wed May 16 01:12:02 2012
@@ -63,6 +63,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="Renderers" dev="GA" type="fix" fixes-bug="40699"
due-to="Luis Bernardo">
+ Fix for invalid PDF for certain numerical values in SVG lineargradient.
+ </action>
<action context="Layout" dev="GA" type="fix" fixes-bug="53185"
due-to="Robert Meyer">
Unify date formatting between FOP and XGC as well as tidying the date
format code.
</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]