]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #40699: Fix for invalid PDF for certain numerical values in SVG lineargradie...
authorGlenn Adams <gadams@apache.org>
Wed, 16 May 2012 01:12:02 +0000 (01:12 +0000)
committerGlenn Adams <gadams@apache.org>
Wed, 16 May 2012 01:12:02 +0000 (01:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1338967 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/svg/PDFGraphics2D.java
status.xml

index ef81180cee21216db35baafb5d96917acb6756ad..67fc5d860c703839fd745f97506033540b7d7cfe 100644 (file)
@@ -1171,8 +1171,8 @@ public class PDFGraphics2D extends AbstractGraphics2D implements NativeImageHand
 
         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;
     }
index 07c6b1ab925e06ced37414616cdd635d1fda3b12..0b3e429d9e1a85972be0f99b41b15f16d88a3f18 100644 (file)
@@ -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>