r22258 by gpittman -

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 17 00:27:10 UTC 2017


Author: gpittman
Date: Sun Dec 17 00:27:10 2017
New Revision: 22258

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22258
Log:
fixing an issue with ColorChart.py

Modified:
    branches/Version14x/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py

Modified: branches/Version14x/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22258&path=/branches/Version14x/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py	(original)
+++ branches/Version14x/Scribus/scribus/plugins/scriptplugin/scripts/ColorChart.py	Sun Dec 17 00:27:10 2017
@@ -84,6 +84,7 @@
     textbox=scribus.createText(leftMargin, topMargin,  pageWidth-leftMargin-rightMargin, HEADERSIZE)
     #set proper font size and alignment
     scribus.setFontSize(18, textbox)
+    scribus.setTextColor("Black",textbox)
     scribus.setTextAlignment(scribus.ALIGN_CENTERED, textbox)
     #load the string into the textbox
     headerstring=pagetitle
@@ -93,6 +94,7 @@
     textbox=scribus.createText(leftMargin, pageHeight-bottomMargin-FOOTERSIZE,  pageWidth-leftMargin-rightMargin, FOOTERSIZE)
     #set proper font size and alignment
     scribus.setFontSize(9, textbox)
+    scribus.setTextColor("Black",textbox)
     scribus.setTextAlignment(scribus.ALIGN_LEFT, textbox)
     #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__)
@@ -246,6 +248,7 @@
     textbox=scribus.createText(h+width+5, v, 50, height)
     #set proper font size
     scribus.setFontSize(11, textbox)
+    scribus.setTextColor("Black",textbox)
     scribus.setTextAlignment(scribus.ALIGN_LEFT, textbox)
     #load the string into the textbox
     scribus.insertText(colorstring, 0, textbox)




More information about the scribus-commit mailing list