[Libreoffice-commits] .: Branch 'libreoffice-3-6' - vcl/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Sep 5 06:35:57 PDT 2012
vcl/source/gdi/pdfwriter_impl.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5a36a0cab0d4d32968404c0d88772e1a6303af00
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Wed Sep 5 14:27:21 2012 +0200
fdo#54546: Force version 2.1 of the sRGB profile for PDF/A-1a
(cherry picked from commit 24f691867d02e853153a53e49276c2a8c30ea1fe)
Change-Id: I7c40c37fbe344f1e46ea4a09fb99a5ac82ffd577
Signed-off-by: Lionel Elie Mamane <lionel at mamane.lu>
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 2c4d10b..6676cfb 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6203,6 +6203,8 @@ sal_Int32 PDFWriterImpl::emitOutputIntent()
beginCompression();
checkAndEnableStreamEncryption( nICCObject );
cmsHPROFILE hProfile = cmsCreate_sRGBProfile();
+//force ICC profile version 2.1
+ cmsSetProfileVersion(hProfile, 2.1);
cmsUInt32Number nBytesNeeded = 0;
cmsSaveProfileToMem(hProfile, NULL, &nBytesNeeded);
if (!nBytesNeeded)
More information about the Libreoffice-commits
mailing list