|
From: Michiel de H. <mjl...@ya...> - 2009-04-29 06:33:52
|
Hi everybody,
I believe a bug was introduced in revision 7002 of backend_cairo.py.
This code, in two places, now calls RendererCairo.convert_path with two arguments (ctx and tpath), whereas RendererCairo.convert_path expects three arguments. In one other place, RendererCairo.convert_path is called (correctly) with three arguments. One example of the code containing the bug is
tpath, affine = clippath.get_transformed_path_and_affine()
ctx.new_path()
affine = affine + Affine2D().scale(1.0, -1.0).translate(0.0, self.height)
tpath = affine.transform_path(tpath)
RendererCairo.convert_path(ctx, tpath)
Before this revision, the corresponding code was
tpath, affine = path.get_transformed_path_and_affine()
ctx.new_path()
affine = affine + Affine2D().scale(1.0, -1.0).translate(0.0, self.renderer.height)
RendererCairo.convert_path(ctx, path, affine)
RendererCairo.convert_path is defined as
@staticmethod
def convert_path(ctx, path, transform):
so with three arguments. Either the calls to convert_path are incorrect, or convert_path should be updated to handle two arguments.
--Michiel
|