'-qr' flag results in TypeError
spike77453 opened this issue · 0 comments
spike77453 commented
$ ./dymoprint -v -qr 'Hello'
Traceback (most recent call last):
File "./dymoprint", line 590, in
main(args)
File "./dymoprint", line 517, in main
pix=scaling((jqr_scale,iqr_scale+qr_offset),qr_scale)
File "./dymoprint", line 430, in scaling
for i in range(sc):
TypeError: range() integer end argument expected, got float.
The contents of 'sc' are definitely float (labelheight is 64 and len(qr_text) is 29). Maybe
qr_scale = labelheight // len(qr_text)
was meant (instead of labelheight / len(qr_text)
), see also https://www.python.org/dev/peps/pep-0238/