AffineTransform bug in PerlMagick
Posted: 2007-01-29T07:04:03-07:00
When giving the 6-element affine matrix in PerlMagick, the last element is not read, making ty=0 in all cases. I think each of the comparisons of length below should be decreased by one. I have 6.3.2-2 at the moment.
Rick
Code: Select all
if (av_len(av) >= 1)
draw_info->affine.sx=(double) SvNV(*(av_fetch(av,0,0)));
if (av_len(av) >= 2)
draw_info->affine.rx=(double) SvNV(*(av_fetch(av,1,0)));
if (av_len(av) >= 3)
draw_info->affine.ry=(double) SvNV(*(av_fetch(av,2,0)));
if (av_len(av) >= 4)
draw_info->affine.sy=(double) SvNV(*(av_fetch(av,3,0)));
if (av_len(av) >= 5)
draw_info->affine.tx=(double) SvNV(*(av_fetch(av,4,0)));
if (av_len(av) >= 6)
draw_info->affine.ty=(double) SvNV(*(av_fetch(av,5,0)));