From 29ac8fd28b44b63d2d552f0d4ad4f4431ef2f13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miran=20Gr=C4=8Da?= Date: Wed, 22 May 2024 15:46:53 +0200 Subject: [PATCH] Fixed line feed in prt_escp.c Per fix by Patrick-Barry, fixes #4477. --- src/printer/prt_escp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/printer/prt_escp.c b/src/printer/prt_escp.c index 8247ecfab..d91a52e0c 100644 --- a/src/printer/prt_escp.c +++ b/src/printer/prt_escp.c @@ -1475,7 +1475,7 @@ process_char(escp_t *dev, uint8_t ch) } dev->curr_x = dev->left_margin; dev->curr_y += dev->linespacing; - if (dev->curr_y > dev->bottom_margin) + if ((dev->curr_y + 0.0001f) > dev->bottom_margin) new_page(dev, 1, 0); return 1;