r20163 by fschmid - .ase file reader, fixed incorrect spot color detection.

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 10 20:25:14 UTC 2015


Author: fschmid
Date: Wed Jun 10 20:25:14 2015
New Revision: 20163

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20163
Log:
.ase file reader, fixed incorrect spot color detection.

Modified:
    trunk/Scribus/scribus/util_color.cpp

Modified: trunk/Scribus/scribus/util_color.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20163&path=/trunk/Scribus/scribus/util_color.cpp
==============================================================================
--- trunk/Scribus/scribus/util_color.cpp (original)
+++ trunk/Scribus/scribus/util_color.cpp Wed Jun 10 20:25:14 2015
@@ -1063,7 +1063,7 @@
 									ts >> r >> g >> b;
 									ts >> spotMode;
 									lf.setColorRGB(qRound(255 * r), qRound(255 * g), qRound(255 * b));
-									lf.setSpotColor(spotMode == 2);
+									lf.setSpotColor(spotMode == 1);
 									lf.setRegistrationColor(false);
 									if (Cname.isEmpty())
 									{
@@ -1078,7 +1078,7 @@
 									ts >> c >> m >> y >> k;
 									ts >> spotMode;
 									lf.setColor(qRound(255 * c), qRound(255 * m), qRound(255 * y), qRound(255 * k));
-									lf.setSpotColor(spotMode == 2);
+									lf.setSpotColor(spotMode == 1);
 									lf.setRegistrationColor(false);
 									if (Cname.isEmpty())
 									{
@@ -1093,7 +1093,7 @@
 									ts >> g;
 									ts >> spotMode;
 									lf.setColor(0, 0, 0, qRound(255 * g));
-									lf.setSpotColor(spotMode == 2);
+									lf.setSpotColor(spotMode == 1);
 									lf.setRegistrationColor(false);
 									if (Cname.isEmpty())
 									{
@@ -1108,7 +1108,7 @@
 									ts >> L >> a >> b;
 									ts >> spotMode;
 									lf.setColor(L * 100.0, a, b);
-									lf.setSpotColor(spotMode == 2);
+									lf.setSpotColor(spotMode == 1);
 									lf.setRegistrationColor(false);
 									if (Cname.isEmpty())
 									{




More information about the scribus-commit mailing list