Hi Uwe,

On Mon, Aug 17, 2009 at 11:04 PM, Uwe Hoffmann<[email protected]> wrote:
>>
>
> if you are still interested (and do not want to install pycairo 1.8.6):
> Change the lines (cairoCanvas.py around line 40)
>        stride = cairo.ImageSurface.format_stride_for_width (
>          cairo.FORMAT_ARGB32,
>          image.size[0])
>        if stride != image.size[0] * 4:
>          raise Exception ,"invalid stride"
>
> to (i hope the indentation will be right):
>
>      try:
>        stride = cairo.ImageSurface.format_stride_for_width (
>          cairo.FORMAT_ARGB32,
>          image.size[0])
>        if stride != image.size[0] * 4:
>          raise Exception ,"invalid stride"
>      except AttributeError:
>        stride = image.size[0] * 4
>

It probably makes sense for me to go ahead and make this change in
subversion as well, doesn't it?

-greg

Reply via email to