r22249 by gpittman -

scribus-commit scribus-commit at lists.scribus.net
Sat Dec 16 01:00:35 UTC 2017


Author: gpittman
Date: Sat Dec 16 01:00:35 2017
New Revision: 22249

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22249
Log:
ColorChart.py - fixed problem with text not showing up (no color assigned to it)

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22249&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	Sat Dec 16 01:00:35 2017
@@ -88,6 +88,7 @@
     #load the string into the textbox
     headerstring=pagetitle
     scribus.insertText(headerstring, 0, textbox)
+    scribus.setTextColor("Black", textbox)
 
     #create textbox and insert text for footer
     textbox=scribus.createText(leftMargin, pageHeight-bottomMargin-FOOTERSIZE,  pageWidth-leftMargin-rightMargin, FOOTERSIZE)
@@ -97,6 +98,7 @@
     #load the string into the textbox
     footerstring="Created using ColorChart.py V %s script for Scribus by Sebastian Stetter - http://www.sebastianstetter.de" % str(__version__)
     scribus.insertText(footerstring, 0, textbox)
+    scribus.setTextColor("Black", textbox)
 
 
 def getSpotColors():
@@ -249,6 +251,7 @@
     scribus.setTextAlignment(scribus.ALIGN_LEFT, textbox)
     #load the string into the textbox
     scribus.insertText(colorstring, 0, textbox)
+    scribus.setTextColor("Black", textbox)
 
 
 def createChart():




More information about the scribus-commit mailing list