r22242 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 10 13:10:45 UTC 2017


Author: jghali
Date: Sun Dec 10 13:10:45 2017
New Revision: 22242

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22242
Log:
fix color conversion error caused by ambiguity between ScColor constructors for RGB and Lab values

Modified:
    trunk/Scribus/scribus/sccolorengine.cpp

Modified: trunk/Scribus/scribus/sccolorengine.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22242&path=/trunk/Scribus/scribus/sccolorengine.cpp
==============================================================================
--- trunk/Scribus/scribus/sccolorengine.cpp	(original)
+++ trunk/Scribus/scribus/sccolorengine.cpp	Sun Dec 10 13:10:45 2017
@@ -467,7 +467,8 @@
 	{
 		RGBColorF rgb;
 		getShadeColorRGB(color, doc, rgb, level);
-		ScColor tmpR(rgb.r, rgb.g, rgb.b);
+		ScColor tmpR;
+		tmpR.setRgbColorF(rgb.r, rgb.g, rgb.b);
 		getCMYKValues(tmpR, doc, cmyk);
 	}
 	else if (color.getColorModel() == colorModelCMYK)




More information about the scribus-commit mailing list