瀏覽代碼

FOP-2818: fix color spaces getting lost of pdf images

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1843302 13f79535-47bb-0310-9956-ffa450edef68
pull/13/head
Matthias Reischenbacher 5 年之前
父節點
當前提交
0fca09f2ee
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      fop-core/src/main/java/org/apache/fop/pdf/PDFResources.java

+ 4
- 1
fop-core/src/main/java/org/apache/fop/pdf/PDFResources.java 查看文件

@@ -299,7 +299,10 @@ public class PDFResources extends PDFDictionary {
}

if (!this.colorSpaces.isEmpty() || (parent != null && !parent.colorSpaces.isEmpty())) {
PDFDictionary dict = new PDFDictionary(this);
PDFDictionary dict = (PDFDictionary)this.get("ColorSpace");
if (dict == null) {
dict = new PDFDictionary(this);
}
if (parent != null) {
for (PDFColorSpace colorSpace : parent.colorSpaces.values()) {
dict.put(colorSpace.getName(), colorSpace);

Loading…
取消
儲存