r22462 by jghali - fix copy paste error found by clang analyzer

scribus-commit scribus-commit at lists.scribus.net
Tue Apr 3 22:47:06 UTC 2018


Author: jghali
Date: Tue Apr  3 22:47:06 2018
New Revision: 22462

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22462
Log:
fix copy paste error found by clang analyzer

Modified:
    trunk/Scribus/scribus/palettes/paletteloader_cxf.cpp

Modified: trunk/Scribus/scribus/palettes/paletteloader_cxf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22462&path=/trunk/Scribus/scribus/palettes/paletteloader_cxf.cpp
==============================================================================
--- trunk/Scribus/scribus/palettes/paletteloader_cxf.cpp	(original)
+++ trunk/Scribus/scribus/palettes/paletteloader_cxf.cpp	Tue Apr  3 22:47:06 2018
@@ -287,7 +287,7 @@
 	const CxfColorCIELCh* cxfLChColor = dynamic_cast<const CxfColorCIELCh*>(object->color(cxfColorCIELCh));
 	if (cxfLChColor)
 	{
-		const CxfColorSpecification* colorSpec = cxfLabColor->colorSpecification();
+		const CxfColorSpecification* colorSpec = cxfLChColor->colorSpecification();
 		const CxfTristimulusSpec& tristimulusSpec = colorSpec->tristimulusSpec();
 		if (tristimulusSpec.isD50_2degree())
 		{
@@ -303,7 +303,7 @@
 	const CxfColorCIEXYZ* cxfXYZColor = dynamic_cast<const CxfColorCIEXYZ*>(object->color(cxfColorCIEXYZ));
 	if (cxfXYZColor)
 	{
-		const CxfColorSpecification* colorSpec = cxfLabColor->colorSpecification();
+		const CxfColorSpecification* colorSpec = cxfXYZColor->colorSpecification();
 		const CxfTristimulusSpec& tristimulusSpec = colorSpec->tristimulusSpec();
 		if (tristimulusSpec.isD50_2degree())
 		{




More information about the scribus-commit mailing list