apply 3704: textobject.py: fix bug in setStrokeColor py33
authorrobin
Wed, 31 Jul 2013 16:01:24 +0100
branchpy33
changeset 3758 2115c74b7806
parent 3757 d4f829a1a319
child 3759 0196beaeea9e
apply 3704: textobject.py: fix bug in setStrokeColor
src/reportlab/pdfgen/textobject.py
--- a/src/reportlab/pdfgen/textobject.py	Wed Jul 31 15:56:05 2013 +0100
+++ b/src/reportlab/pdfgen/textobject.py	Wed Jul 31 16:01:24 2013 +0100
@@ -9,7 +9,6 @@
 Progress Reports:
 8.83, 2000-01-13, gmcm: created from pdfgen.py
 """
-import sys
 import string
 from types import *
 from reportlab.lib.colors import Color, CMYKColor, CMYKColorSep, toColor, black, white, _CMYK_black, _CMYK_white
@@ -111,7 +110,7 @@
                 self._strokeColorObj = aColor
                 self._code.append('%s RG' % fp_str(aColor) )
             elif l==4:
-                self._fillColorObj = aColor
+                self._strokeColorObj = aColor
                 self._code.append('%s K' % fp_str(aColor))
             else:
                 raise ValueError('Unknown color %r' % aColor)