aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2012-05-16 01:12:02 +0000
committerGlenn Adams <gadams@apache.org>2012-05-16 01:12:02 +0000
commitb5331a3467d2bae9daf4b6e471222028bce7740c (patch)
tree7594f8a717ade73f48ee2bb8b27118223590e80f
parent9c2da74727eb33039eae0b313523258d4ebe6c6d (diff)
downloadxmlgraphics-fop-b5331a3467d2bae9daf4b6e471222028bce7740c.tar.gz
xmlgraphics-fop-b5331a3467d2bae9daf4b6e471222028bce7740c.zip
Bugzilla #40699: Fix for invalid PDF for certain numerical values in SVG lineargradient. Submitted by Luis Bernardo.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1338967 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/svg/PDFGraphics2D.java4
-rw-r--r--status.xml3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java
index ef81180ce..67fc5d860 100644
--- a/src/java/org/apache/fop/svg/PDFGraphics2D.java
+++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java
@@ -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;
}
diff --git a/status.xml b/status.xml
index 07c6b1ab9..0b3e429d9 100644
--- a/status.xml
+++ b/status.xml
@@ -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>