Skip to content

Commit

Permalink
fix wrong bar width in ImageWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermaier authored and WhyNotHugo committed Dec 1, 2022
1 parent aa83b6e commit 4849f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barcode/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _paint_module(self, xpos, ypos, width, color):
size = [
(mm2px(xpos, self.dpi), mm2px(ypos, self.dpi)),
(
mm2px(xpos + width, self.dpi),
mm2px(xpos + width, self.dpi) - 1,
mm2px(ypos + self.module_height, self.dpi),
),
]
Expand Down

0 comments on commit 4849f13

Please sign in to comment.