From b522cd9836c9038702910694dfba99a8936748d4 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Wed, 17 May 2023 11:49:30 +0800 Subject: [PATCH] reset image count when starting a new scanning --- sane/scanner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sane/scanner.cpp b/sane/scanner.cpp index ccbeaac..53e6508 100644 --- a/sane/scanner.cpp +++ b/sane/scanner.cpp @@ -3203,6 +3203,7 @@ int scanner::handle_device_event(int ev_code, void* data, unsigned int* len) { if (ev_code == SANE_EVENT_WORKING) { + img_ind_ = 0; if (indicator_.get()) indicator_->notify_working(); else if (callback::show_progress_ui && is_bIndicator)