Browse Source

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
tags/fop-1_1rc1old
Glenn Adams 12 years ago
parent
commit
b5331a3467
2 changed files with 5 additions and 2 deletions
  1. 2
    2
      src/java/org/apache/fop/svg/PDFGraphics2D.java
  2. 3
    0
      status.xml

+ 2
- 2
src/java/org/apache/fop/svg/PDFGraphics2D.java View 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;
}

+ 3
- 0
status.xml View 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>

Loading…
Cancel
Save