r22213 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Nov 1 23:52:38 UTC 2017
Author: jghali
Date: Wed Nov 1 23:52:38 2017
New Revision: 22213
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22213
Log:
stop using some color-related deprecated functions in sample scripts
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
trunk/Scribus/scribus/plugins/scriptplugin/scripts/csv2color.py
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22213&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py Wed Nov 1 23:52:38 2017
@@ -165,7 +165,7 @@
m = int(color[2])
y = int(color[3])
k = int(color[4])
- scribus.defineColor(cname, c, m, y, k )
+ scribus.defineColorCMYK(cname, c, m, y, k )
if spotDict.has_key(cname):
scribus.setSpotColor(cname, spotDict[cname])
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/csv2color.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22213&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/csv2color.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/csv2color.py (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/csv2color.py Wed Nov 1 23:52:38 2017
@@ -132,7 +132,7 @@
while colordict.has_key(name):# check if color already exists - then add PREFIX to name
name = PREFIX+name
- scribus.defineColor(name, c, m, y, k)
+ scribus.defineColorCMYK(name, c, m, y, k)
i=i+1
scribus.progressSet(i)
More information about the scribus-commit
mailing list