Skip to content

Commit 3b2582d

Browse files
committed
Merged in iconberg/xpos-was-not-100-middle-for-centering-te-1421521983115 (pull request #2)
xpos was not 100% middle for centering text, corrected
2 parents 6085acd + c6ba945 commit 3b2582d

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
@@ -192,7 +192,7 @@ def render(self, code):
192192
color = self.foreground
193193
self._callbacks['paint_module'](xpos, ypos, self.module_width * abs(mod), color) # remove painting for background colored tiles?
194194
xpos += self.module_width * abs(mod)
195-
bxe = xpos - self.module_width * abs(mod) # x end of barcode
195+
bxe = xpos
196196
# Add right quiet zone to every line, except last line, quiet zone already provided with background, should it be removed complety?
197197
if (cc + 1) != len(code):
198198
self._callbacks['paint_module'](xpos, ypos, self.quiet_zone, self.background)

0 commit comments

Comments
 (0)