From 3767c4e62e70d162232a645c78e9edc4aa23df78 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 12 Jul 2017 22:02:31 +0100 Subject: [PATCH] fix code39 barcodes --- elaphe/code39.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elaphe/code39.py b/elaphe/code39.py index 6852b02..cfa1eeb 100644 --- a/elaphe/code39.py +++ b/elaphe/code39.py @@ -74,7 +74,7 @@ def _text_bbox(self, codestring): textmaxy = textyoffset + textsize textmaxx = 16*(len(codestring)+1)+0.6*textsize if hidestars: - textmaxx = 16, textmaxx-16 + textmaxx = textmaxx - 16 return [0, textyoffset, textmaxx, textmaxy] def build_params(self, codestring):