paragraph.py: use canvas.setFillColor
authorrgbecker
Tue, 19 Oct 2004 17:52:20 +0000
changeset 2400 f47d5c6d8fcd
parent 2399 41c1b1d88a33
child 2401 cd68d7a84d05
paragraph.py: use canvas.setFillColor
reportlab/platypus/paragraph.py
--- a/reportlab/platypus/paragraph.py	Thu Oct 07 17:51:31 2004 +0000
+++ b/reportlab/platypus/paragraph.py	Tue Oct 19 17:52:20 2004 +0000
@@ -713,7 +713,7 @@
                     offset = _drawBullet(canvas,offset,cur_y,bulletText,style)
 
                 #set up the font etc.
-                canvas._code.append('%s %s %s rg' % (f.textColor.red, f.textColor.green, f.textColor.blue))
+                canvas.setFillColor(f.textColor)
 
                 tx = self.beginText(cur_x, cur_y)