src/reportlab/platypus/doctemplate.py
changeset 3702 b230ea9a15da
parent 3701 b3c5693903bf
child 3706 d468d1f4e8b7
--- a/src/reportlab/platypus/doctemplate.py	Tue Jul 02 10:17:00 2013 +0100
+++ b/src/reportlab/platypus/doctemplate.py	Tue Jul 02 10:47:30 2013 +0100
@@ -240,15 +240,16 @@
     _ZEROSIZE=True
     width=0
     height=0
-    def __init__(self, bg=None, left=0, right=0, start=True):
-        self.bgLeft = _evalMeasurement(left)
-        self.bgRight = _evalMeasurement(right)
-        self.bg = bg
+    def __init__(self, color=None, left=0, right=0, start=True):
         self.start = start
+        if start:
+            self.left = _evalMeasurement(left)
+            self.right = _evalMeasurement(right)
+            self.color = color
 
     def frameAction(self, frame):
         if self.start:
-            frame._frameBGs.append((self.bgLeft,self.bgRight,self.bg))
+            frame._frameBGs.append((self.left,self.right,self.color))
         elif frame._frameBGs:
             frame._frameBGs.pop()