mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
qrcode: fix vertical space check
This commit is contained in:
parent
3bd6489ec1
commit
fc2636ad01
@ -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)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user