r18230 by jghali - #11483 : Achromatic images convert non-uniformly with colored images in PDF CMYK export

scribus-commit scribus-commit at lists.scribus.net
Fri Apr 5 20:17:50 UTC 2013


Author: jghali
Date: Fri Apr  5 20:17:49 2013
New Revision: 18230

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18230
Log:
#11483 : Achromatic images convert non-uniformly with colored images in PDF CMYK export

Modified:
    trunk/Scribus/scribus/scimgdataloader_qt.cpp

Modified: trunk/Scribus/scribus/scimgdataloader_qt.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18230&path=/trunk/Scribus/scribus/scimgdataloader_qt.cpp
==============================================================================
--- trunk/Scribus/scribus/scimgdataloader_qt.cpp (original)
+++ trunk/Scribus/scribus/scimgdataloader_qt.cpp Fri Apr  5 20:17:49 2013
@@ -49,7 +49,7 @@
 		m_imageInfoRecord.colorspace = ColorSpaceRGB;
 		if (m_image.depth() == 1)
 			m_imageInfoRecord.colorspace = ColorSpaceMonochrome;
-		else if (m_image.isGrayscale())
+		else if (m_image.isGrayscale() && m_image.depth() <= 16)
 			m_imageInfoRecord.colorspace = ColorSpaceGray;
 		m_image = m_image.convertToFormat(QImage::Format_ARGB32);
 		m_image.setDotsPerMeterX ((int) (xres / 0.0254));




More information about the scribus-commit mailing list