diff options
author | Kelly Campbell <kellyc@apache.org> | 2001-02-05 19:50:51 +0000 |
---|---|---|
committer | Kelly Campbell <kellyc@apache.org> | 2001-02-05 19:50:51 +0000 |
commit | cb1f0d6ce76079c3b5bf6784f3db71558f13051c (patch) | |
tree | 472efd6189613874752c536ab95d3dbdc78a3d76 /src/org/apache/fop/pdf/PDFStream.java | |
parent | ce6fba8a9c127301874fcbb1a215f85eb0fb185a (diff) | |
download | xmlgraphics-fop-cb1f0d6ce76079c3b5bf6784f3db71558f13051c.tar.gz xmlgraphics-fop-cb1f0d6ce76079c3b5bf6784f3db71558f13051c.zip |
Removed NumberFormat usage in PDFRenderer to fix a locale-specific bug
for locales which use comma as the decimal separator.
Fixed a minor issue with PDFStream where blank or null filter types
were reported with an error message. These are now just ignored.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/pdf/PDFStream.java')
-rw-r--r-- | src/org/apache/fop/pdf/PDFStream.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/apache/fop/pdf/PDFStream.java b/src/org/apache/fop/pdf/PDFStream.java index 195b2e857..ccf22db75 100644 --- a/src/org/apache/fop/pdf/PDFStream.java +++ b/src/org/apache/fop/pdf/PDFStream.java @@ -117,6 +117,9 @@ public class PDFStream extends PDFObject { public void addFilter(String filterType) { + if (filterType == null) { + return; + } if (filterType.equals("flate")) { addFilter(new FlateFilter()); } @@ -126,6 +129,9 @@ public class PDFStream extends PDFObject { else if (filterType.equals("ascii-hex")) { addFilter(new ASCIIHexFilter()); } + else if (filterType.equals("")) { + return; + } else { MessageHandler.errorln("Unsupported filter type in stream-filter-list: "+filterType); } |