From 125221e7878e3188e8ce858b76c380e10886e445 Mon Sep 17 00:00:00 2001 From: Johny Mattsson Date: Wed, 31 May 2017 14:15:02 +1000 Subject: Fix wrong dimension check (whoops). --- src/ql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ql.c b/src/ql.c index f98a5f4..25badaa 100644 --- a/src/ql.c +++ b/src/ql.c @@ -181,7 +181,7 @@ bool ql_print_raster_image(ql_ctx_t ctx, const ql_status_t *status, const ql_ras if (status->model_code == 'P' || status->model_code == '4') dn = 162; // 1296 pixels - if (img->width > dn * 8) + if (img->height > dn * 8) return false; // image too wide for printer char print_info[] = { ESC, 'i', 'z', -- cgit v1.2.1