summaryrefslogtreecommitdiffstats
path: root/src/ql.c
diff options
context:
space:
mode:
authorJohny Mattsson <jmattsson@dius.com.au>2017-05-31 14:15:02 +1000
committerJohny Mattsson <jmattsson@dius.com.au>2017-05-31 14:15:02 +1000
commit125221e7878e3188e8ce858b76c380e10886e445 (patch)
treeedc8a51b56e17d7d7242417f7fa77dc4f8f68741 /src/ql.c
parent4be8c4c1b2d3c3a840631ff99d441bb1db0ad88d (diff)
downloadqlprint-125221e7878e3188e8ce858b76c380e10886e445.tar.gz
qlprint-125221e7878e3188e8ce858b76c380e10886e445.tar.xz
qlprint-125221e7878e3188e8ce858b76c380e10886e445.zip
Fix wrong dimension check (whoops).
Diffstat (limited to 'src/ql.c')
-rw-r--r--src/ql.c2
1 files changed, 1 insertions, 1 deletions
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',