r20875 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 2 12:52:44 UTC 2016


Author: jghali
Date: Tue Feb  2 12:52:44 2016
New Revision: 20875

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20875
Log:
#13704: Wrong colour model selection with LAB palette

Modified:
    trunk/Scribus/scribus/ui/cmykfw.cpp

Modified: trunk/Scribus/scribus/ui/cmykfw.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20875&path=/trunk/Scribus/scribus/ui/cmykfw.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/cmykfw.cpp	(original)
+++ trunk/Scribus/scribus/ui/cmykfw.cpp	Tue Feb  2 12:52:44 2016
@@ -980,10 +980,15 @@
 			ComboBox1->setCurrentIndex( 0 );
 			selModel( tr("CMYK"));
 		}
-		else
+		else if (tmp.getColorModel() == colorModelRGB)
 		{
 			ComboBox1->setCurrentIndex( 1 );
 			selModel( tr("RGB"));
+		}
+		else
+		{
+			ComboBox1->setCurrentIndex( 2 );
+			selModel( tr("Lab"));
 		}
 	}
 	imageN.fill( ScColorEngine::getDisplayColor(tmp, m_doc) );




More information about the scribus-commit mailing list