From fc2636ad0118d92e84f15f0c760c575dcbd368c5 Mon Sep 17 00:00:00 2001 From: RMZeroFour Date: Fri, 15 Nov 2024 18:19:04 +0530 Subject: [PATCH] qrcode: fix vertical space check --- src/lib/fill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/fill.c b/src/lib/fill.c index d9a1b8e48..60ae523dc 100644 --- a/src/lib/fill.c +++ b/src/lib/fill.c @@ -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)){