Skip to content

Commit

Permalink
qrcode: fix vertical space check
Browse files Browse the repository at this point in the history
  • Loading branch information
RMZeroFour authored and dankamongmen committed Nov 16, 2024
1 parent 3bd6489 commit fc2636a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/fill.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ int ncplane_qrcode(ncplane* n, unsigned* ymax, unsigned* xmax, const void* data,
if(*ymax > n->leny - starty){
return -1;
}
if(*ymax < qrcode_rows(1)){
if(*ymax * 2 < qrcode_rows(1)){
return -1;
}
if(*xmax < qrcode_cols(1)){
Expand Down

0 comments on commit fc2636a

Please sign in to comment.