[reportlab-users] [Fwd: a patch for common.py]

Tim Grant tim at reportlab.com
Thu Jul 2 04:10:03 EDT 2009

-------- Original Message --------
Subject: a patch for common.py
Date: Thu, 2 Jul 2009 09:03:24 +0900
From: nagashi zundo <zundoya at gmail.com>
To: enquiries at reportlab.com


I encounterd an error, using reportLab with humanreadable barcode recently.
I found a bug in common.py. And made a patch for it, as following.

Anyway, Thanks for nice open source software.

Index: src/reportlab/graphics/barcode/common.py
--- src/reportlab/graphics/barcode/common.py (リビジョン 3513)
+++ src/reportlab/graphics/barcode/common.py (作業コピー)
@@ -173,7 +173,7 @@
if anchor=='middle': func = 'drawCentredString'
elif anchor=='end': func = 'drawRightString'
else: func = 'drawString'
- getattr(canv,func)(text,x,y)
+ getattr(canv,func)(x,y,text)

class MultiWidthBarcode(Barcode):

ReportLab Europe Ltd.
Media House
3 Palmerston Road
London SW19 1PG
Tel +44-20-8545-1570

More information about the reportlab-users mailing list