r22398 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 16 18:09:49 UTC 2018


Author: jghali
Date: Fri Feb 16 18:09:48 2018
New Revision: 22398

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22398
Log:
#15150: IDML import: Lab colours are being wrongly interpreted

Modified:
    trunk/Scribus/scribus/plugins/import/idml/importidml.cpp

Modified: trunk/Scribus/scribus/plugins/import/idml/importidml.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22398&path=/trunk/Scribus/scribus/plugins/import/idml/importidml.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/idml/importidml.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/idml/importidml.cpp	Fri Feb 16 18:09:48 2018
@@ -800,6 +800,20 @@
 				ScTextStream Code(&colorData, QIODevice::ReadOnly);
 				Code >> r >> g >> b;
 				tmp.setRgbColor(r, g, b);
+				tmp.setSpotColor(false);
+				tmp.setRegistrationColor(false);
+				QString fNam = m_Doc->PageColors.tryAddColor(colorName, tmp);
+				if (fNam == colorName)
+					importedColors.append(fNam);
+				colorTranslate.insert(colorSelf, fNam);
+			}
+			else if (colorSpace == "LAB")
+			{
+				double L, a, b;
+				ScColor tmp;
+				ScTextStream Code(&colorData, QIODevice::ReadOnly);
+				Code >> L >> a >> b;
+				tmp.setLabColor(L, a, b);
 				tmp.setSpotColor(false);
 				tmp.setRegistrationColor(false);
 				QString fNam = m_Doc->PageColors.tryAddColor(colorName, tmp);




More information about the scribus-commit mailing list