Permalink
Browse files

Remove double decoding information from image mask. This fix bugs

PDFRENDERER-134 and PDFRENDERER-109 (Inverted Type 3 fonts).
  • Loading branch information...
1 parent 6ff0ae1 commit aae73e6d5ebeb188d525e31ce2b5d39ced174bd4 @Borisvl Borisvl committed with Nov 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/sun/pdfview/PDFImage.java
@@ -141,11 +141,11 @@ public static PDFImage createImage(PDFObject obj, Map resources, boolean useAsSM
colors = useAsSMask? new Color[]{Color.BLACK, Color.WHITE}:new Color[]{Color.WHITE, Color.BLACK};
}
- float[] decode = new float[decodeArray.length];
+/* float[] decode = new float[decodeArray.length];
for (int i = 0; i < decodeArray.length; i++) {
decode[i] = decodeArray[i].getFloatValue();
}
- image.setDecode(decode);
+ image.setDecode(decode);*/
}
image.setColorSpace(new IndexedColor(colors));

0 comments on commit aae73e6

Please sign in to comment.