[patch] TypeError in do_simple_paint
@stephane.maniaci
Submitted by Stéphane Maniaci Assigned to Stéphane Maniaci @stephane.maniaci
Description
Original bug reported on Launchpad : https://bugs.launchpad.net/ubuntu/+source/pitivi/+bug/536624
Traceback:
Traceback (most recent call last):
File "/usr/lib/pitivi/python/pitivi/ui/curve.py", line 261, in do_simple_paint
cr.reset_clip()
TypeError: Required argument 'cr' (pos 1) not found
This happens when I add the same clip twice on the timeline and try to overlap them.
Ubuntu Lucid with PiTiVi from Git (0.13.4), PyCairo from Git. I've made some research on the reset_clip() function, and found this tutorial (http://zetcode.com/tutorials/pygtktutorial/drawingII/) containing a script using reset_clip() function, not working as well. I changed this
-cr.reset_clip()
+cr.reset_clip(cr, widget.window)
in that script, and it finally worked.
So before reporting a bug against PyCairo, I wanted to know if someone can reproduce that bug or if it has something to do with my installation.
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=612501