Commit 81461f4c authored by Albert Astals Cid's avatar Albert Astals Cid

Remove another LCMS1 old ifdef

parent 2556ec07
......@@ -18,7 +18,7 @@
// Copyright (C) 2009 Michael K. Johnson <a1237@danlj.org>
// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com>
// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
// Copyright (C) 2009, 2010 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009, 2010, 2017 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2010, 2011-2017 Adrian Johnson <ajohnson@redneon.com>
// Copyright (C) 2010, 2014 Hib Eris <hib@hiberis.nl>
// Copyright (C) 2010 Jonathan Liu <net147@gmail.com>
......@@ -395,12 +395,6 @@ static void writePageImage(GooString *filename)
writer = new PNGWriter(PNGWriter::RGB);
#ifdef USE_CMS
#ifdef USE_LCMS1
if (icc_data)
static_cast<PNGWriter*>(writer)->setICCProfile(cmsTakeProductName(profile), icc_data, icc_data_size);
else
static_cast<PNGWriter*>(writer)->setSRGBProfile();
#else
if (icc_data) {
cmsUInt8Number profileID[17];
profileID[16] = '\0';
......@@ -411,7 +405,6 @@ static void writePageImage(GooString *filename)
static_cast<PNGWriter*>(writer)->setSRGBProfile();
}
#endif
#endif
#endif
} else if (jpeg) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment