[reportlab-users] RGBA Colors
robin at reportlab.com
Thu Dec 3 05:18:22 EST 2009
Tim Roberts wrote:
> Kevin D Smith wrote:
>> I did wonder if it was something that I was doing. Can you clarify why this is wrong? I thought the save and restore state methods were simply there to reset the canvas state back to what it was before doing an operation.
> I think the issue is as simple as that the FillAlpha value is NOT being
> saved and restored. It's currently just a local attribute of the canvas
> object, and so it persists. If you add it to the STATE_ATTRIBUTES list
> in canvas.py, this problem will probably go away.
> I haven't checked the svn version, so if this has already been done,
> then I'm all wet.
In fact it's harder than that. We also need to leave the _extgstate as a clone
of any existing one rather than create a new initial value each time.
I'll try and fix later.
More information about the reportlab-users