r22593 by jghali - replace some ScColor setColorF calls by more explicit setCmykColorF

scribus-commit scribus-commit at lists.scribus.net
Sat Jul 7 15:15:57 UTC 2018


Author: jghali
Date: Sat Jul  7 15:15:57 2018
New Revision: 22593

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22593
Log:
replace some ScColor setColorF calls by more explicit setCmykColorF

Modified:
    trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp

Modified: trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22593&path=/trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pdf/slaoutput.cpp	Sat Jul  7 15:15:57 2018
@@ -209,7 +209,7 @@
 		double Mc = colToDbl(cmyk.m);
 		double Yc = colToDbl(cmyk.y);
 		double Kc = colToDbl(cmyk.k);
-		tmp.setColorF(Cc, Mc, Yc, Kc);
+		tmp.setCmykColorF(Cc, Mc, Yc, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	else if ((color_space->getMode() == csCalGray) || (color_space->getMode() == csDeviceGray))
@@ -217,7 +217,7 @@
 		GfxGray gray;
 		color_space->getGray(color, &gray);
 		double Kc = 1.0 - colToDbl(gray);
-		tmp.setColorF(0, 0, 0, Kc);
+		tmp.setCmykColorF(0, 0, 0, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	else if (color_space->getMode() == csSeparation)
@@ -228,7 +228,7 @@
         bool isRegistrationColor = (name == "All");
         if (isRegistrationColor)
         {
-            tmp.setColorF(1.0, 1.0, 1.0, 1.0);
+            tmp.setCmykColorF(1.0, 1.0, 1.0, 1.0);
             tmp.setRegistrationColor(true);
             name = "Registration";
         }
@@ -4004,7 +4004,7 @@
 		double Mc = colToDbl(cmyk.m);
 		double Yc = colToDbl(cmyk.y);
 		double Kc = colToDbl(cmyk.k);
-		tmp.setColorF(Cc, Mc, Yc, Kc);
+		tmp.setCmykColorF(Cc, Mc, Yc, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	else if ((color_space->getMode() == csCalGray) || (color_space->getMode() == csDeviceGray))
@@ -4012,7 +4012,7 @@
 		GfxGray gray;
 		color_space->getGray(color, &gray);
 		double Kc = 1.0 - colToDbl(gray);
-		tmp.setColorF(0, 0, 0, Kc);
+		tmp.setCmykColorF(0, 0, 0, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	else if (color_space->getMode() == csSeparation)
@@ -4023,7 +4023,7 @@
 		bool isRegistrationColor = (name == "All");
         if (isRegistrationColor)
         {
-            tmp.setColorF(1.0, 1.0, 1.0, 1.0);
+            tmp.setCmykColorF(1.0, 1.0, 1.0, 1.0);
             tmp.setRegistrationColor(true);
             name = "Registration";
         }
@@ -4104,14 +4104,14 @@
 		double Mc = color_data[1];
 		double Yc = color_data[2];
 		double Kc = color_data[3];
-		tmp.setColorF(Cc, Mc, Yc, Kc);
+		tmp.setCmykColorF(Cc, Mc, Yc, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	else if (color->getSpace() == AnnotColor::colorGray)
 	{
 		const double *color_data = color->getValues();
 		double Kc = 1.0 - color_data[0];
-		tmp.setColorF(0, 0, 0, Kc);
+		tmp.setCmykColorF(0, 0, 0, Kc);
 		fNam = m_doc->PageColors.tryAddColor(namPrefix+tmp.name(), tmp);
 	}
 	if (fNam == namPrefix+tmp.name())




More information about the scribus-commit mailing list