aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2014-07-14 21:08:42 +0000
committerVincent Hennebert <vhennebert@apache.org>2014-07-14 21:08:42 +0000
commit48d4ad499361b0d269a90d3c357b05d081e3798d (patch)
tree93cda4c135ebbcd6424ec20adfbf512c333ea10b /src/java/org/apache/fop/pdf
parentdecb63c9dff4fa1dcf65b9cc3faaa4bf54050301 (diff)
downloadxmlgraphics-fop-48d4ad499361b0d269a90d3c357b05d081e3798d.tar.gz
xmlgraphics-fop-48d4ad499361b0d269a90d3c357b05d081e3798d.zip
Moved content of FunctionPattern into Function
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP-2393_gradient-rendering@1610528 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf')
-rw-r--r--src/java/org/apache/fop/pdf/PDFFunction.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFFunction.java b/src/java/org/apache/fop/pdf/PDFFunction.java
index 39942fc21..bdd61a86d 100644
--- a/src/java/org/apache/fop/pdf/PDFFunction.java
+++ b/src/java/org/apache/fop/pdf/PDFFunction.java
@@ -25,7 +25,6 @@ import java.util.Collections;
import java.util.List;
import org.apache.fop.render.shading.Function;
-import org.apache.fop.render.shading.FunctionPattern;
/**
* class representing a PDF Function.
@@ -108,12 +107,11 @@ public class PDFFunction extends PDFObject {
public byte[] toByteString() {
- FunctionPattern pattern = new FunctionPattern(function);
List<String> functionsStrings = new ArrayList<String>(function.getFunctions().size());
for (PDFFunction f : pdfFunctions) {
functionsStrings.add(f.referencePDF());
}
- return encode(pattern.toWriteableString(functionsStrings));
+ return encode(function.toWriteableString(functionsStrings));
}
/** {@inheritDoc} */