清理上一次还在队列当中的图像“

This commit is contained in:
mo1027728827@qq.com 2022-06-07 17:48:22 +08:00
parent 0399c85d4e
commit 61773e61d9
1 changed files with 1 additions and 2 deletions

View File

@ -699,6 +699,7 @@ void hg_scanner::thread_handle_image_process(void)
void hg_scanner::working_begin(void*)
{
final_imgs_.clear();
final_img_index_ = 0;
notify_ui_working_status(STATU_DESC_SCAN_WORKING, SANE_EVENT_WORKING, SCANNER_ERR_OK);
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "[%s] scanning ...\n", hg_log::current_time().c_str());
@ -706,8 +707,6 @@ void hg_scanner::working_begin(void*)
void hg_scanner::working_done(void*)
{
imgs_.Clear();
if(user_cancel_)
final_imgs_.clear();
switch (status_)
{