From 32083172ea58ce44a402ef2372afc1c82f8d19e9 Mon Sep 17 00:00:00 2001 From: thierry1970 Date: Tue, 21 Apr 2020 14:49:40 +0200 Subject: [PATCH] Allows you to move to the next page. --- backend/escl/escl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/escl/escl.c b/backend/escl/escl.c index 67df465f0..804f8a8c0 100644 --- a/backend/escl/escl.c +++ b/backend/escl/escl.c @@ -1084,12 +1084,12 @@ sane_read(SANE_Handle h, SANE_Byte *buf, SANE_Int maxlen, SANE_Int *len) handler->scanner->work = next_page; handler->ps.last_frame = !next_page; if (handler->ps.last_frame == SANE_TRUE) - status = SANE_STATUS_EOF; - else status = SANE_STATUS_NO_DOCS; + else + status = SANE_STATUS_EOF; } - else - status = SANE_STATUS_EOF; + else + status = SANE_STATUS_EOF; return status; } return (SANE_STATUS_GOOD);