Skip to content

Commit 4849f13

Browse files
fostermaierWhyNotHugo
authored andcommitted
fix wrong bar width in ImageWriter
1 parent aa83b6e commit 4849f13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

barcode/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _paint_module(self, xpos, ypos, width, color):
428428
size = [
429429
(mm2px(xpos, self.dpi), mm2px(ypos, self.dpi)),
430430
(
431-
mm2px(xpos + width, self.dpi),
431+
mm2px(xpos + width, self.dpi) - 1,
432432
mm2px(ypos + self.module_height, self.dpi),
433433
),
434434
]

0 commit comments

Comments
 (0)