diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-05-26 01:27:47 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-05-26 01:27:47 -0500 |
commit | 682381448da9ec3453b348323c186908c2e49875 (patch) | |
tree | 72c8bed68eb88e83febdd71b27e63653d675de23 /libre/fop/fop-replace_sRGB_profile.patch | |
parent | 71dbbc7b26a73a16c763987ff8eda3d618483b30 (diff) | |
download | abslibre-682381448da9ec3453b348323c186908c2e49875.tar.gz abslibre-682381448da9ec3453b348323c186908c2e49875.tar.bz2 abslibre-682381448da9ec3453b348323c186908c2e49875.zip |
fop-2.2-1.parabola1: updating version
Diffstat (limited to 'libre/fop/fop-replace_sRGB_profile.patch')
-rw-r--r-- | libre/fop/fop-replace_sRGB_profile.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libre/fop/fop-replace_sRGB_profile.patch b/libre/fop/fop-replace_sRGB_profile.patch deleted file mode 100644 index 035a7e4b3..000000000 --- a/libre/fop/fop-replace_sRGB_profile.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- fop-2.0.orig/src/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java 2015-05-26 03:03:48.000000000 -0500 -+++ fop-2.0/src/java/org/apache/fop/pdf/PDFICCBasedColorSpace.java 2015-12-21 16:38:02.149485578 -0500 -@@ -21,6 +21,8 @@ - - import java.awt.color.ColorSpace; - import java.awt.color.ICC_Profile; -+import java.io.File; -+import java.io.FileInputStream; - import java.io.IOException; - import java.io.InputStream; - import java.util.Set; -@@ -136,11 +138,14 @@ - * @return the ICC stream with the sRGB profile - */ - public static PDFICCStream setupsRGBColorProfile(PDFDocument pdfDoc) { -- ICC_Profile profile; -+ ICC_Profile profile = null; - PDFICCStream sRGBProfile = pdfDoc.getFactory().makePDFICCStream(); -- InputStream in = PDFDocument.class.getResourceAsStream("sRGB Color Space Profile.icm"); -- if (in != null) { -+ // Load the sRGB profile installed by the openicc package -+ File file = new File("/usr/share/color/icc/OpenICC/sRGB.icc"); -+ if (file.exists()) { -+ InputStream in = null; - try { -+ in = new FileInputStream(file); - profile = ColorProfileUtil.getICC_Profile(in); - } catch (IOException ioe) { - throw new RuntimeException( -@@ -148,7 +153,8 @@ - } finally { - IOUtils.closeQuietly(in); - } -- } else { -+ } -+ if (profile == null) { - // Fallback: Use the sRGB profile from the JRE (about 140KB) - profile = ColorProfileUtil.getICC_Profile(ColorSpace.CS_sRGB); - } |