qrcode: fix vertical space check

This commit is contained in:
RMZeroFour 2024-11-15 18:19:04 +05:30 committed by nick black
parent 3bd6489ec1
commit fc2636ad01

View File

@ -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)){