[reportlab-users] Image.getBounds bug

Marcel Tromp mtromp.docbook at gmail.com
Sat Nov 7 22:57:05 EST 2009


Image.getBounds has a bug:

Found in Release 2.1, but present in 2.3 as well.

def getBounds(self):
return (self.x, self.y, self.x + width, self.y + width)
Results in: NameError: global name 'width' is not defined

This is fixed by:
def getBounds(self):
return (self.x, self.y, self.x + self.width, self.y +
self.height)


Marcel
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20091107/f92a64b7/attachment.html>


More information about the reportlab-users mailing list