r21039 by jghali -
    scribus-commit 
    scribus-commit at lists.scribus.net
       
    Thu Feb 25 23:29:48 UTC 2016
    
    
  
Author: jghali
Date: Thu Feb 25 23:29:47 2016
New Revision: 21039
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21039
Log:
#13765: LAB colours with negative a or b values interpreted as spot colours
Modified:
    trunk/Scribus/scribus/util_color.cpp
Modified: trunk/Scribus/scribus/util_color.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21039&path=/trunk/Scribus/scribus/util_color.cpp
==============================================================================
--- trunk/Scribus/scribus/util_color.cpp	(original)
+++ trunk/Scribus/scribus/util_color.cpp	Thu Feb 25 23:29:47 2016
@@ -212,8 +212,8 @@
 		double L, a, b;
 		col.getLab(&L, &a, &b);
 		R = qRound(L);
-		G = qRound(a);
-		B = qRound(b);
+		G = qRound(a + 128);
+		B = qRound(b + 128);
 	}
 	result |= col.getColorModel() == colorModelRGB ? 1 : 0;
 	result |= col.isSpotColor() ? 64 : 0;
    
    
More information about the scribus-commit
mailing list