summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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',